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

Function size

packages/@react-spectrum/s2/style/spectrum-theme.ts:466–468  ·  view source on GitHub ↗
(this: MacroContext | void, px: number)

Source from the content-addressed store, hash-verified

464 * @returns A CSS `calc()` expression.
465 */
466export function size(this: MacroContext | void, px: number): `calc(${string})` {
467 return `calc(${pxToRem(px)} * var(--s2-scale))`;
468}
469
470const sizing = {
471 auto: 'auto',

Callers 12

HomeFunction · 0.90
AssetsFunction · 0.90
SidebarFunction · 0.90
SideNavLinkFunction · 0.90
WrapperFunction · 0.90
ExampleListFunction · 0.90
VisualExample.tsxFile · 0.90
Tabs.tsxFile · 0.90
TabsPicker.tsxFile · 0.90
DividerFunction · 0.90
Breadcrumbs.tsxFile · 0.90
gridTrackSizeFunction · 0.85

Calls 1

pxToRemFunction · 0.70

Tested by

no test coverage detected