Components
Feature Grid
A grid of icon features for marketing pages.
Installation
$ npx veil-ui@latest add feature-gridUsage
import { FeatureGrid } from "@/components/ui/feature-grid";
<FeatureGrid
features={[
{ icon: <Zap />, title: "Fast by default", description: "Zero runtime surprises." },
{ icon: <ShieldCheck />, title: "Accessible", description: "ARIA and keyboard support." },
]}
/>;Examples
Basic
Fast by default
Sensible defaults with zero runtime surprises.
Accessible
Keyboard support and ARIA built into every primitive.
Composable
Small parts that fit together without overrides.
Two columns
Predictable performance
No hidden observers or layout thrash.
Design tokens
Theme everything from a single source of truth.
API reference
The package exports feature-grid along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.
Accessibility
- Pages keep a single
h1in the hero and useh2/h3for section hierarchy. - Call-to-action elements are real links or buttons with discernible labels.
- Decorative icons are
aria-hiddenand meaningful images requirealttext.
Vue and plain HTML
This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add feature-grid --framework vue or switch the framework in components.json.
<template>
<div data-slot="feature-grid" class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3 w-full max-w-4xl"><div class="rounded-lg border bg-background p-5 shadow-xs"><span class="mb-3 flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-4"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zap" aria-hidden="true"><path d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"></path></svg></span><h3 class="text-sm font-semibold">Fast by default</h3><p class="mt-1 text-sm text-muted-foreground">Sensible defaults with zero runtime surprises.</p></div><div class="rounded-lg border bg-background p-5 shadow-xs"><span class="mb-3 flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-4"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg></span><h3 class="text-sm font-semibold">Accessible</h3><p class="mt-1 text-sm text-muted-foreground">Keyboard support and ARIA built into every primitive.</p></div><div class="rounded-lg border bg-background p-5 shadow-xs"><span class="mb-3 flex size-9 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-4"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layers lucide-layers-3" aria-hidden="true"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></span><h3 class="text-sm font-semibold">Composable</h3><p class="mt-1 text-sm text-muted-foreground">Small parts that fit together without overrides.</p></div></div>
</template>