Text is used to display customizable text content with control over its HTML element type.
The best way to predict the future is to invent it.
React
- Renders as different HTML elements (p, span, div, label)
- Customizable with className and style props
- Preserves accessibility with proper semantic elements
- Lightweight and simple to use
A component for displaying text content with customizable styling.
| Prop | Type | Default |
|---|---|---|
as | enum | p |
children | ReactNode | -- |
className | string | '' |
customRootClass | string | '' |