import { FeatureGrid } from "@pixxl-tools/components";
// In Server Components:
import { FeatureGrid } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly FeatureGridItem[] | — | Items to render. |
columns | 2 | 3 | 4 | 3 | Maximum columns from lg up (default 3); fewer on small screens. |
variant | "card" | "plain" | plain | plain (default) or card (bordered tiles). |
headingAs | HeadingElement | h3 | Heading element of item titles (default h3). |
itemsrequiredreadonly FeatureGridItem[]
Items to render.
columnsdefault 32 | 3 | 4
Maximum columns from lg up (default 3); fewer on small screens.
variantdefault plain"card" | "plain"
plain (default) or card (bordered tiles).
headingAsdefault h3HeadingElement
Heading element of item titles (default h3).
Other props are passed to the root element (HTMLAttributes<HTMLUListElement>), including className, style, id and aria-* attributes.
Tokens, layers and an accent per site.
APG keyboard support and axe-checked docs.
Server-safe modules split per component.
Complex object props use fixed fixtures. Primitive props stay editable.
<FeatureGrid items={features} columns={3} variant="card" />Keyboard and screen-reader patterns built in.
Server-safe presentational components.
One token for the accent of every site.
const features = [
{ title: "Accessible", description: "Keyboard and screen reader support." },
{ title: "Themeable", description: "Tokens and ten accents." },
];
<FeatureGrid columns={3} items={[{ icon: <CheckCircleIcon />, title: "Accessible", description: "…" }]} />Tokens, layers and an accent per site.
APG keyboard support and axe-checked docs.
Server-safe modules split per component.
const features = [
{ title: "Accessible", description: "Keyboard and screen reader support." },
{ title: "Themeable", description: "Tokens and ten accents." },
];
<FeatureGrid items={features} columns={3} variant="card" />