MCPcopy Create free account
hub / github.com/adobe/react-spectrum / controlFont

Function controlFont

packages/@react-spectrum/s2/src/style-utils.ts:206–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206export const controlFont = () =>
207 ({
208 default: 'ui',
209 size: {
210 XS: 'ui-xs',
211 S: 'ui-sm',
212 L: 'ui-lg',
213 XL: 'ui-xl'
214 }
215 }) as const;
216
217export const controlSize = (size: 'sm' | 'md' = 'md'): typeof controlSizeM | typeof controlSizeS =>
218 size === 'sm' ? controlSizeS : controlSizeM;

Callers 15

Slider.tsxFile · 0.90
TabsPicker.tsxFile · 0.90
RadioGroup.tsxFile · 0.90
Menu.tsxFile · 0.90
StatusLight.tsxFile · 0.90
Breadcrumbs.tsxFile · 0.90
ComboBox.tsxFile · 0.90
Switch.tsxFile · 0.90
TableView.tsxFile · 0.90
Checkbox.tsxFile · 0.90
ColorSlider.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected