FeatureGrid
Reusable feature grid component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<FeatureGrid
columns="3"
/>Legacy mount name: data-component="FeatureGrid".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
columns | number | Optional | 3 |
className | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/FeatureGrid.wrn
component FeatureGrid {
props {
columns = 3
className = ""
}
view {
<div class="grid gap-5 {columns === 2 ? 'md:grid-cols-2' : columns === 4 ? 'sm:grid-cols-2 xl:grid-cols-4' : 'md:grid-cols-2 lg:grid-cols-3'} {className}">
<slot />
</div>
}
}