BasePrimitives
Text
Text from the Base package.
Loading Text…
Source code
Waiting for the preview before loading source files · 2 of 2
Properties
Public properties derived from the component’s TypeScript signature.
| Property | Type | Default |
|---|---|---|
textRequired | string | — |
sizeOptionalSize (s/m/l, default: m) | "s" | "m" | "l" | "m" |
colorOptionalColor (semantic, default: text) | "text" | "muted" | "accent" | "danger" | "warning" | "success" | "text" |
asOptionalRender as different element | ElementType | — |
monoOptionalMonospace font | boolean | false |
variantOptionalHeading semantics and typography without a separate component. | "body" | "heading" | "body" |
levelOptionalSemantic heading level. Only used by the heading variant. | 1 | 2 | 3 | 4 | 2 |
weightOptional | Property.FontWeight | — |