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