Title and a line of text in 3 or 4 columns on hairline rules, led by a small icon or a number. The bento variant mixes wide, tall and large cards; each can hold a picture or a live component on a muted inset.
- Product feature list
- Agent capabilities
- Bento overview
- Numbered steps
Examples
Bento
Installation
npx knowns-ui@latest add feature-gridPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Feature grid from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/feature-grid
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add feature-grid
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/spinner.tsx
- components/ui/knowns/button.tsx
- components/ui/knowns/illustrations/illust-utils.ts
- components/ui/knowns/illustrations/use-in-view.ts
- components/ui/knowns/marquee/marquee.tsx
- components/ui/knowns/marquee/marquee-utils.ts
- components/ui/knowns/blocks/marketing/section-heading.tsx
- components/ui/knowns/blocks/marketing/marketing-utils.ts
- components/ui/knowns/blocks/marketing/feature-grid.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0, class-variance-authority@^0.7.1.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/feature-grid, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "feature-grid" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- features
{ title, text, icon?, link?, size?, visual? }[]- Titles must be unique (they key the list). icon is a 16px line icon, shown muted beside the title. link sits at the bottom of the item: give every item one, or none. size and visual apply to the bento variant.
- spacing
"default"|"tight"- Default
"default" - Section padding: 56 / 80px (phone / desktop), or 40 / 56px inside a page or a frame.
- marker
"icon"|"number"|"none"- Default
icon when items have icons - Grid: what leads each title. number shows 01, 02, ... in mono.
- variant
"grid"|"bento"- Default
"grid" - Even columns, or cards with mixed sizes.
- columns
3|4- Default
3 - Grid columns once the section is 896px wide (1024px for 4); 2 from 576px, 1 below. Sized by the space the block gets (container queries), not the viewport.
- size
"sm"|"wide"|"tall"|"lg"- Default
"sm" - Bento: one cell, two columns, two rows, or two by two. Cards stack on phones.
- cardLinks
boolean- Default
false - Bento: a card with a link is clickable as a whole, and its surface shifts a step on hover (colour only). Keep visuals inert when you turn it on.
- eyebrow / title / lead / align
ReactNode / "start"|"center"- Default
"center" - The section heading.
| Prop | Type | Default | Description |
|---|---|---|---|
| features | { title, text, icon?, link?, size?, visual? }[] | - | Titles must be unique (they key the list). icon is a 16px line icon, shown muted beside the title. link sits at the bottom of the item: give every item one, or none. size and visual apply to the bento variant. |
| spacing | "default" | "tight" | "default" | Section padding: 56 / 80px (phone / desktop), or 40 / 56px inside a page or a frame. |
| marker | "icon" | "number" | "none" | icon when items have icons | Grid: what leads each title. number shows 01, 02, ... in mono. |
| variant | "grid" | "bento" | "grid" | Even columns, or cards with mixed sizes. |
| columns | 3 | 4 | 3 | Grid columns once the section is 896px wide (1024px for 4); 2 from 576px, 1 below. Sized by the space the block gets (container queries), not the viewport. |
| size | "sm" | "wide" | "tall" | "lg" | "sm" | Bento: one cell, two columns, two rows, or two by two. Cards stack on phones. |
| cardLinks | boolean | false | Bento: a card with a link is clickable as a whole, and its surface shifts a step on hover (colour only). Keep visuals inert when you turn it on. |
| eyebrow / title / lead / align | ReactNode / "start" | "center" | "center" | The section heading. |
Six features in three columns read best. In bento, order cards so each row fills: a large card next to a tall one, then smaller cards.
What it handles
- 01Lays features out in 3 or 4 columns on hairline rules from 1024px, collapsing to 2 and then 1 by container width.
- 02Leads each title with a muted 16px icon, a number like 01 or nothing, set by the marker prop.
- 03Aligns an optional link to the bottom of every item with mt-auto, so rows stay even whatever the text length.
- 04Switches to a bento variant where each feature takes a size of sm, wide, tall or lg in a dense 4-column grid.
- 05Places a visual (picture, chart or live component) on a muted inset above the text of a bento cell.
- 06Turns a bento card into one clickable surface with cardLinks, stretching its link over the card, and adds a badge after any title.
States
- First render
- Nothing. The grid paints as it is
- none
- Grid item
- No hover effect, the item is static
- none
- Bento card with cardLinks, hover
- The card surface shifts one step in colour
- 120ms, ease out
- Reduced motion
- The surface changes at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The grid paints as it is | none |
| Grid item | No hover effect, the item is static | none |
| Bento card with cardLinks, hover | The card surface shifts one step in colour | 120ms, ease out |
| Reduced motion | The surface changes at once | 0ms |
Works with
When to use
When to use
- Six or eight features at a glance, each with an icon, a line and an optional link.
- A bento overview where one or two features deserve a picture or a live preview.
When not to use
- Explaining one feature in depth with a screenshot: use Feature Split.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Feature Grid to my app and wire it to my own data.
- I need six or eight features at a glance, each with an icon, a line and an optional link. Set that up with the Knowns UI Feature Grid.
- Which Feature Grid props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "feature-grid" }) and search_docs({ query: "feature grid" }).