SubsectionHeading
Reusable subsection heading component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<SubsectionHeading text="text" align="start" />Legacy mount name: data-component="SubsectionHeading".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
text | string | Optional | "" |
align | string | Optional | "start" |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/SubsectionHeading.wrn
component SubsectionHeading {
props {
text = ""
align = "start"
class = ""
}
view { <div class="wire-type wire-type--heading wire-text--{align} {class}">{text}<slot /></div> }
}