Stack
Reusable stack component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<Stack
gap="4"
/>Legacy mount name: data-component="Stack".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
gap | string | Optional | "4" |
className | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/Stack.wrn
component Stack {
props {
gap = "4"
className = ""
}
view {
<div class="flex flex-col gap-{gap} {className}">
<slot />
</div>
}
}