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

Function controlFont

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

Source from the content-addressed store, hash-verified

207}
208
209export const controlFont = () =>
210 ({
211 default: 'ui',
212 size: {
213 XS: 'ui-xs',
214 S: 'ui-sm',
215 L: 'ui-lg',
216 XL: 'ui-xl'
217 }
218 }) as const;
219
220export const controlSize = (size: 'sm' | 'md' = 'md'): typeof controlSizeM | typeof controlSizeS =>
221 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