React Feature Grid
FeatureGrid is a React feature grid block of glass cards, each with an icon, a title and a line of text, in two to four columns that follow its own width. One optional highlight card spans two columns and is lit from a corner.
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/feature-grid.jsonWhy SheenUI
Everything a glass UI needs
One system for surfaces, motion and accessibility.
Design tokens
Colour, blur and motion live in CSS variables, so a theme is one file.
Accessible by default
Built on Base UI: real keyboard support, roles and focus management.
Springs, not tweens
Interruptible motion with reduced-motion paths for every effect.
FeatureGriddefaultFeatureGridLabels
Three columns with a highlight
highlight marks the card that matters most. A card with an href becomes one link with a single tab stop and a whole-card click target.
Why SheenUI
Everything a glass UI needs
One system for surfaces, motion and accessibility.
Design tokens
Colour, blur and motion live in CSS variables, so a theme is one file.
- Learn more
Accessible by default
Built on Base UI: real keyboard support, roles and focus management.
Springs, not tweens
Interruptible motion with reduced-motion paths for every effect.
import { FeatureGrid, type FeatureGridItem } from "@/components/sheenui/blocks/feature-grid";
// Package build (after the first npm release, or a packed tarball): import { FeatureGrid, type FeatureGridItem } from "@sheenui/theme";
const glyph = (d: string) => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round">
<path d={d} />
</svg>
);
const features: FeatureGridItem[] = [
{ id: "tokens", title: "Design tokens", description: "Colour, blur and motion live in CSS variables.", icon: glyph("M12 3 3 8l9 5 9-5-9-5ZM3 13l9 5 9-5") },
{ id: "a11y", title: "Accessible by default", description: "Real keyboard support, roles and focus management.", icon: glyph("m5 12 4 4 10-10"), highlight: true },
{ id: "motion", title: "Springs, not tweens", description: "Interruptible motion with reduced-motion paths.", icon: glyph("M13 2 4 14h7l-1 8 9-12h-7l1-8Z") },
];
export function Example() {
return (
<FeatureGrid
eyebrow="Why SheenUI"
title="Everything a glass UI needs"
description="One system for surfaces, motion and accessibility."
features={features
.slice(0, 3)
.map((f) => (f.highlight ? { ...f, href: "/guides/accessible-glassmorphism" } : f))}
/>
);
}Files to copy
6 folders · 8 files · 3 packages
- From
theme/src/ blocks/feature-grid.tsxcomponents/glass-card/hooks/{use-media-query.ts, use-preferences.ts}motion/{light-follower.ts, tokens.ts}lib/{cn.ts, heading.ts, no-script-reveal.tsx}styles/
- shadcn CLI
npx shadcn@latest add https://lokendra-builds.github.io/sheenui/r/feature-grid.jsonRegistry item: feature-grid. The styles need the Tailwind v4 glass UI setup.- Packages
pnpm add clsx motion tailwind-merge
Four columns
columns={4} gives a four-up row on a wide block and steps down to three, two and one as the block narrows (container queries, so it works in a sidebar layout too).
Small parts, big range
Inputs
Fields that share one height scale.
Overlays
Dialogs, drawers and menus.
Charts
Every chart has a table twin.
Blocks
Pages assembled from the parts.
import { FeatureGrid } from "@/components/sheenui/blocks/feature-grid";
// Package build (after the first npm release, or a packed tarball): import { FeatureGrid } from "@sheenui/theme";
export function Example() {
return (
<FeatureGrid
columns={4}
title="Small parts, big range"
features={[
{ id: "a", title: "Inputs", description: "Fields that share one height scale." },
{ id: "b", title: "Overlays", description: "Dialogs, drawers and menus." },
{ id: "c", title: "Charts", description: "Every chart has a table twin." },
{ id: "d", title: "Blocks", description: "Pages assembled from the parts." },
]}
/>
);
}Props
FeatureGridLabels keys and English defaults (2)
Keyboard
Accessibility
- A <section> named by its heading (labels.region when there is no title); card titles are headings one level below it.
- A card's link is named by 'Learn more' plus the card's title, so a list of links is not a list of identical names.
- Icons are aria-hidden. The highlight card is also larger and first in its row, so nothing relies on colour.
- Cards rise on a spring when scrolled into view; reduced motion keeps a short fade.
All exports on this page
FeatureGrid— A grid of feature cards: an icon in a lit tile, a title and a line of text each, two to four columns by the block's own width.defaultFeatureGridLabels— The English FeatureGridLabels used when labels is omitted; a partial labels prop is merged over it.
When to use the feature grid
- Use FeatureGrid under a hero to say what the product does in six or eight short cards, each with an icon in a lit tile, a title and one sentence.
- Use highlight on the one card that matters most; it is tinted with the accent, lit from a corner and spans two columns, so it is also larger and never relies on colour alone.
- Use href on a card to make it one link with a single tab stop and a whole-card click target, named by 'Learn more' plus the card's title.
- Skip it when the cards should hold live demos or charts; BentoGrid is built for that, while FeatureGrid is for plain copy and icons.
- Pair it with HeroSection above and Testimonials or Pricing below, and keep it to eight cards or fewer in view so the glass blur budget holds.
Frequently asked questions
Related pages
20 blocks pages in all: browse them on All blocks.
By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .