Components
Text
The typography primitive for body copy - renders a <p> (or any element via
as or render). Ships without a line-length cap; add max-w-prose at the call
site for long-form prose. size names a type role, defaults to
paragraph-sm and accepts responsive values:
size={{ base: "paragraph-sm", md: "paragraph-lg" }}.
Usage
Best practices
asis a closed text-only vocabulary - useas="span"for inline copy;as="div"/as="label"are type errors (useBoxfor wrappers,Labelfor form labels).asandrenderare mutually exclusive (renderwins, dev-warned); Text ships without a line-length cap - addmax-w-proseat the call site for long-form prose.
Props
Also exports
- const
TEXT_SIZES - type
TextSize - const
textSizeClasses