Skip to content

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.json

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.

  • 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.

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.

  • Accessible by default

    Built on Base UI: real keyboard support, roles and focus management.

    Learn more
  • Springs, not tweens

    Interruptible motion with reduced-motion paths for every effect.

Files to copy

6 folders · 8 files · 3 packages
From theme/src/
  • blocks/feature-grid.tsx
  • components/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.

Props

PropTypeDefaultDescription
features (required)FeatureGridItem[]NoneLists the cards, which render in reading order (FeatureGridItem[]).
eyebrowReactNodeNoneShows a small label above the title (ReactNode).
titleReactNodeNoneSets the section heading (ReactNode).
descriptionReactNodeNoneSets the line under the heading (ReactNode).
columns2 | 3 | 43Columns on a wide block (2 | 3 | 4). The grid follows the block's own width, so it steps down to two and then one column.
headingLevelHeadingLevelOption2Level of the section heading (1 to 6); the card headings sit one level below. "none" renders plain text, no headings.
labelsPartial<FeatureGridLabels>defaultFeatureGridLabelsEvery other string, for translation: labels={{ region: "…" }}; omitted keys keep the English of defaultFeatureGridLabels. All 2 keys of FeatureGridLabels are listed in the key table under the props table.
classNamestringNoneAdds extra classes to the section (string).
FeatureGridLabels keys and English defaults (2)
Pass any key in labels; the rest keep the defaults of defaultFeatureGridLabels.
KeyEnglish default
regionFeatures
learnMoreLearn more

Keyboard

KeysAction
TabCards without an href are not stops. A card with an href has one link.
EnterFollow the focused card's link.

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

20 blocks pages in all: browse them on All blocks.

By Lokendra Singh Rathore (GitHub, opens in a new tab). Published , updated .