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

Function controlSize

packages/@react-spectrum/s2/src/style-utils.ts:217–218  ·  view source on GitHub ↗
(size: 'sm' | 'md' = 'md')

Source from the content-addressed store, hash-verified

215 }) as const;
216
217export const controlSize = (size: 'sm' | 'md' = 'md'): typeof controlSizeM | typeof controlSizeS =>
218 size === 'sm' ? controlSizeS : controlSizeM;
219
220const controlSizeM = {
221 default: 32,

Callers 14

TextAreaInputFunction · 0.90
RadioGroup.tsxFile · 0.90
CloseButton.tsxFile · 0.90
Menu.tsxFile · 0.90
Breadcrumbs.tsxFile · 0.90
ComboBox.tsxFile · 0.90
ClearButton.tsxFile · 0.90
Switch.tsxFile · 0.90
Checkbox.tsxFile · 0.90
barFunction · 0.90
LabeledValue.tsxFile · 0.90
fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected