Bento Grid
ProA responsive bento layout with cards that lift on hover.
Installation
pnpm dlx shadcn@latest add @viewport/bento-grid
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| title* | React.ReactNode | — |
| description | React.ReactNode | — |
| icon | React.ReactNodeSmall icon or label shown above the title. | — |
| visual | React.ReactNodeVisual area that fills the space above the text. | — |
Accessibility
- One column on phones, two on tablets, three on desktop.
- Cards use real headings so the outline stays navigable.
- Server component with no client JavaScript.