Typography
Theme-aware, responsive typography component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<Typography
size="default"
color="primary"
columns="2"
gap="md"
maxWidth="xl"
/>Legacy mount name: data-component="Typography".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
size | string | Optional | "default" |
color | string | Optional | "primary" |
columns | number | Optional | 2 |
gap | string | Optional | "md" |
maxWidth | string | Optional | "xl" |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/Typography.wrn
component Typography {
props {
size = "default"
color = "primary"
columns = 2
gap = "md"
maxWidth = "xl"
class = ""
}
view {
<article class="wire-next wire-next--color-{color} wire-next--size-{size} wire-next--typography wire-next--gap-{gap} wire-next--columns-{columns} wire-next--max-{maxWidth} {class}">
<slot />
</article>
}
}