Text
Displays text using Kor typography styles.
When to use
- Set the level of a heading or present short body and secondary text.
Examples
A heading
Loading the example
<k:Text kind="heading" text="Packing instructions"/>Shipment details with hierarchy
Loading the example
<k:Stack gap="6">
<k:Text kind="title" text="{/title}"/>
<k:Text kind="muted" text="{/reference}"/>
<k:Text kind="body" text="{/instructions}"/>
</k:Stack>API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
text | string | Text to display | |
kind | string | body | display, title, heading, body or muted |