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

Function fontRelative

packages/@react-spectrum/s2/style/index.ts:61–63  ·  view source on GitHub ↗
(base: number, baseFontSize = 14)

Source from the content-addressed store, hash-verified

59 * @returns A CSS `em` value wrapped as an arbitrary style value.
60 */
61export function fontRelative(base: number, baseFontSize = 14): `[${string}]` {
62 return `[${internalFontRelative(base, baseFontSize)}]`;
63}
64
65/**
66 * Returns consistent Spectrum focus ring outline styles for interactive components.

Callers 1

SearchMenuTriggerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected