PriceText
Reusable price text component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<PriceText
text="text"
align="start"
/>Legacy mount name: data-component="PriceText".
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/PriceText.wrn
component PriceText {
props {
text = ""
align = "start"
class = ""
}
view {
<div class="wire-type wire-type--display wire-text--{align} {class}">{text}<slot />
</div>
}
}