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

Function edgeToText

packages/@react-spectrum/s2/style/spectrum-theme.ts:420–422  ·  view source on GitHub ↗
(this: MacroContext | void, height: keyof typeof baseSpacing)

Source from the content-addressed store, hash-verified

418}
419
420export function edgeToText(this: MacroContext | void, height: keyof typeof baseSpacing): string {
421 return `calc(${baseSpacing[height]} * 3 / 8)`;
422}
423
424export function space(this: MacroContext | void, px: number): string {
425 return pxToRem(px);

Callers 4

TabsPicker.tsxFile · 0.90
Menu.tsxFile · 0.90
ComboBox.tsxFile · 0.90
Picker.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected