MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getAllowedOverrides

Function getAllowedOverrides

packages/@react-spectrum/s2/src/style-utils.ts:417–422  ·  view source on GitHub ↗
({width = true, height = false, font = false} = {})

Source from the content-addressed store, hash-verified

415}
416
417export function getAllowedOverrides({width = true, height = false, font = false} = {}): string[] {
418 return (allowedOverrides as unknown as string[])
419 .concat(width ? widthProperties : [])
420 .concat(height ? heightProperties : [])
421 .concat(font ? ['fontFamily', 'fontWeight', 'lineHeight', 'fontSize'] : []);
422}

Callers 15

ProgressCircle.tsxFile · 0.90
Disclosure.tsxFile · 0.90
Popover.tsxFile · 0.90
Button.tsxFile · 0.90
Tabs.tsxFile · 0.90
ColorArea.tsxFile · 0.90
CustomDialog.tsxFile · 0.90
Avatar.tsxFile · 0.90
InlineAlert.tsxFile · 0.90
DropZone.tsxFile · 0.90
Link.tsxFile · 0.90
NumberField.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected