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

Function space

packages/@react-spectrum/s2/style/index.ts:42–44  ·  view source on GitHub ↗
(px: number)

Source from the content-addressed store, hash-verified

40 * @returns A `rem` value wrapped as an arbitrary style value.
41 */
42export function space(px: number): `[${string}]` {
43 return `[${internalSpace(px)}]`;
44}
45
46/**
47 * Converts a pixel value to a font-relative `em` length. Useful for sizing elements

Callers 15

HomeHeaderFunction · 0.90
HomeHeaderFunction · 0.90
NavFunction · 0.90
Link.tsxFile · 0.90
Header.tsxFile · 0.90
CodeFold.tsxFile · 0.90
ResponseStatus.tsxFile · 0.90
HorizontalCard.tsxFile · 0.90
Disclosure.tsxFile · 0.90
NumberField.tsxFile · 0.90
RadioGroup.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected