Display text using well-defined typographic styles.
Use Text to standardize text content.
Add p and b attributes to a Text.
Make your development more creative and with amazing tools for React.
Make your development more creative and with amazing tools for React.
Add small attributes to a Text.
Add blockquote attributes to a Text.
Build encapsulated components that manage their own state, then compose them to make complex UIs.
You can change the color of the Text with the property type.
Text of different sizes.
Font Size: 12px;
Font Size: 14px;
Font Size: 1rem;
Font Size Scale: 1.25;
Effect of multiple Text stacks
Build encapsulated components that manage their own state, then compose them to make complex UIs.
Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.We don’t make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
| Attribute | Description | Type | Accepted values | Default |
|---|---|---|---|---|
| p | component name | boolean | - | true |
| h1 - h6 | component name | boolean | - | false |
| small | component name | boolean | - | false |
| span | component name | boolean | - | false |
| del | component name | boolean | - | false |
| i | component name | boolean | - | false |
| em | component name | boolean | - | false |
| b | component name | boolean | - | false |
| blockquote | component name | boolean | - | false |
| type | text type | TextTypes | TextTypes | default |
| ... | native props | HTMLAttributes | 'id', 'className', ... | - |
type TextTypes =
| 'default'
| 'primary'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'info'
Previous
Tag
Next
Textarea

