What it does
Provides sized body copy with tone variants and emphasis switches.
Highlight wraps phrases with a subtle background wash.
Composition and API
Use `as` to swap tags without losing typography recipes.
Pair muted tone with secondary layout chrome sparingly.
Common use cases
- Long-form docs and marketing blurbs.
- Muted helper lines under controls.
- Inline labels next to toggles.
- Highlighted phrases without leaving the Text primitive.
Accessibility
Prefer paragraphs for blocks of text.
Reserve label rendering for actual label semantics tied to controls.
Next.js integration notes
Server components can render static Text content.
Move interactive demos into client boundaries only when required.
FAQ
How do sizes map?
sm, base, and lg align with Tailwind text-sm through text-lg with relaxed leading.
Can I nest interactive elements?
Children can include links or buttons; keep interactive targets large enough for pointer and keyboard users.
Does highlight use a fixed color?
Highlight applies an amber translucent wash suitable for dark shells; override with className if your theme differs.