Skip to content
W WRNexusJS
data component

FeatureGrid

Reusable feature grid component.

@wrnexus/ui 0.2.672 props1 slots0 events

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

PropTypeRequirementDefault
columnsnumberOptional3
classNamestringOptional""

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>
    }
}