Text
Use text as a wrapper component that will apply typography styles to the text inside.
- Alpha
- Reviewed for accessibility
The Text component is a wrapper component that will apply typography styles to the text inside.
| Name | Type | Default | Description |
|---|---|---|---|
| as | React.ElementType | 'span' | The underlying element to render — either a HTML element name or a React component. |
| sx | SystemStyleObject | ||
| size | 'large' | 'medium' | 'small' | ||
| weight | 'light' | 'normal' | 'medium' | 'semibold' |