Text
Component to render text.
Example
Hello world
Default color
Primary color
Destructive color
Muted color
heading-1 variant
heading-2 variant
heading-3 variant
heading-4 variant
body variant
body-small variant
code variant
Props
Name | Type | Description |
---|---|---|
variant | 'code' | 'body-small' | 'body' | 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | The text’s variant. Default to body |
color | 'primary' | 'default' | 'destructive' | 'muted' | The button’s color. Default to default |