Skip to content

Text

Text(__namedParameters): Element

Defined in: packages/ui/src/components/Text.tsx:54

Parameter Type Description
__namedParameters { aria-label?: string; as?: ElementType<TextElementProps>; children: ReactNode; className?: string; size?: "base" | "xs" | "sm" | "lg" | "xl"; } -
__namedParameters.aria-label? string The accessible name, where the element the caller chose takes one. Spelled as the attribute it becomes, so there is no second name for a caller to learn and none for this to quietly drop.
__namedParameters.as? ElementType<TextElementProps> The element to draw. Rows of named values are a list, one value is an output, and a span is the fallback for text that is only text. A wrapper of this component’s own would be an element with nothing to say, so the caller’s is the one that is drawn.
__namedParameters.children ReactNode -
__namedParameters.className? string An override that shows in the diff.
__namedParameters.size? "base" | "xs" | "sm" | "lg" | "xl" The font size, from Tailwind’s scale. Small by default, the size of a readout over the world.

Element