page FeatureCardcomponent { seo { title = "FeatureCard component" description = "Reusable feature card component." } view {
W WRNexusJS
content component

FeatureCard

Reusable feature card component.

@wrnexus/ui 0.2.645 props0 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<FeatureCard icon="✦" title="Feature" description="description" href="href" />

Legacy mount name: data-component="FeatureCard".

Props and attributes

PropTypeRequirementDefault
classstringOptional""
iconstringOptional"✦"
titlestringOptional"Feature"
descriptionstringOptional""
hrefstringOptional""

Slots

This component does not declare a slot.

Events

This component does not declare a custom event.

Source contract

Installed source: components/FeatureCard.wrn

component FeatureCard {
  props {
    class = ""
    icon = "✦"
    title = "Feature"
    description = ""
    href = ""
  }
  view {
    <article class="group rounded-2xl border border-slate-200 bg-white p-6 transition duration-300 hover:-translate-y-1 hover:border-violet-300 hover:shadow-xl dark:border-slate-800 dark:bg-slate-900 {class}"><div class="flex size-11 items-center justify-center rounded-xl bg-violet-100 text-xl text-violet-700 transition group-hover:scale-110 dark:bg-violet-950 dark:text-violet-300">{icon}</div><h3 class="mt-5 text-lg font-bold">{title}</h3><p class="mt-2 leading-7 text-slate-600 dark:text-slate-300">{description}</p><a data-show="href" href="{href}" class="mt-4 inline-flex font-semibold text-violet-600">Learn more →</a></article>
  }
}
} }