CD-05Cards
Widget Grid
Dashboard widgets you lift, drag and resize on a 6-column grid, with spring physics and full keyboard support.
PROOnboarding Checklist and more like it are in Kokonut UI Pro
Installation
Widget Grid is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/bento-grid.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/bento-gridOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/bento-grid.tsx.
npm install lucide-react motionUsage
import WidgetGrid from "@/components/kokonutui/bento-grid";
export default function Example() {
return <WidgetGrid />;
}Props
itemsWidgetGridItem[]Default demo datalayoutWidgetLayoutItem[]Controlled order and spans.
defaultLayoutWidgetLayoutItem[]Uncontrolled starting order and spans.
onLayoutChange(layout: WidgetLayoutItem[]) => voidCalled on every reorder or resize, including live moves while dragging.
classNamestringExtra classes for the root element.
rowHeightnumberDefault 176Height of one row in pixels.
WidgetGridItem
idrequiredstringtitlerequiredstringiconReactNoderenderrequired(size: WidgetSize) => ReactNodeRenders the widget body for the size its column span maps to.
defaultSpannumberSpan used when no layout is given. Defaults to 2.
WidgetLayoutItem
idrequiredstringspanrequirednumberWidth in columns of the 6-column grid (2 to 6).
WidgetSize
type WidgetSize = "s" | "m" | "l";Dependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
motion | ^12.23.25 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

