What this thread does
The problem
Asked for a dashboard, an agent produces a different random layout every time: uneven cards, unstyled numbers, no hierarchy.
What the source shows
The shadcn blocks page lists dashboard-01, "a dashboard with sidebar, charts, and data table", installed with npx shadcn add dashboard-01. I read its source in shadcn-ui/ui (MIT, commit d2fba50):
page.tsxcomposes a sidebar, a site header, a row of summary cards, an area chart and a data table.section-cards.tsxis the KPI pattern: a card with a small label, a largetabular-numsvalue, a badge with the percentage change and a two-line footer. The grid is one column on narrow screens and four on wide ones.chart-area-interactive.tsxanddata-table.tsxare the chart and table; the table's row reordering uses dnd-kit.
How to describe it to the agent
"Install the shadcn dashboard-01 block. Replace the sample numbers in section-cards.tsx with our four metrics (name, value, change vs last period). Keep the layout and components; swap data.json for our API. Do not add new card styles."
Mistakes to avoid
- Letting the agent restyle the cards from scratch and losing the hierarchy.
- Showing a delta badge without saying what it is compared to.
- Keeping the sample sidebar items.
Limits
I did not run it. The block assumes shadcn and Tailwind; installing it writes files into your project and may add dependencies, so review the diff.
Sources
Primary sources: the shadcn/ui blocks page and the block's source in the shadcn-ui/ui repository at commit d2fba50 (read through the GitHub API on 18 October 2026, nothing installed).
- Confirms: the blocks page lists
dashboard-01as "A dashboard with sidebar, charts and data table", installed withnpx shadcn add dashboard-01; the repo is MIT;page.tsxcomposes the sidebar, site header,SectionCards,ChartAreaInteractiveandDataTablewithdata.json; the card grid, the largetabular-numsvalue, the outline badge and the card footer are insection-cards.tsx; the data table imports dnd-kit. The component files live in the block'scomponents/folder. - Not covered: whether an agent that is given this block keeps the layout, which is the thread's advice rather than a documented behaviour.
Started from a post by @shadcn-ui, packaged by the editor. Original post