FeatureGrid
Grid of feature or benefit cards with an icon, title, copy and optional link.
Design intent
Marketing pages repeat three- and six-card feature groups. FeatureGrid standardizes the card hierarchy, icon tile, grid and link affordance without forcing a separate Card composition on every page.
npx @slipstream-ui/cli@latest add feature-gridShared components
Components curated for your product, stage and team.
Team workspaces
Invite the right people to every project.
Learn moreSecure documents
Streamlined contracts and document sharing.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| features | FeatureItem[] | required | Features: title, optional description, icon, href and actionLabel. |
| columns | 2 | 3 | 4 | 3 | Desktop column count. |
| variant | 'card' | 'plain' | 'card' | Card surface or a plain stack. |
| align | 'left' | 'center' | 'left' | Content alignment. |
| linkComponent | React.ElementType | — | Custom link element for routers. |
| linkHrefProp | 'href' | 'to' | 'href' | Prop name used to pass the destination to linkComponent. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't put a button inside a linked card
The whole card is a link when href is present. A nested button creates invalid interaction and conflicting targets.
tsx// Avoid<FeatureGrid features={[{ href: '/x', title: 'X', actionLabel: 'Go' }]} />
Accessibility
- Renders ul/li so the group and item count are announced.
- A linked feature is one link; do not nest buttons inside it.
Composition
Compose with Section: Place FeatureGrid inside a Section band
<Section><FeatureGrid features={features} /></Section>
Related components: Card, FeatureRow, ProcessSteps
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.