Text
A native, styled text element.
The quick brown fox jumps over the lazy dog
Props
Prop | Type | Default |
---|---|---|
size | xs | sm | md | lg | xl | - |
color | base | brand | - |
contrast | boolean | - |
html | string | - |
text | string | - |
as | HTMLTag | p |
HTML Attributes | Polymorphic<as> | - |
Examples
size
The size prop cascades: it is inherited from the parent and it is applied to all children.
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
color
Sets the color variant used for this component and all its children.
The quick brown fox jumps
The quick brown fox jumps
contrast
Set to true
by default on Headings, which you can override by setting it to false
.
The quick brown fox jumps