1.7 KiB
1.7 KiB
shadcn/ui Dashboard Components Guide
This is the entry point for shadcn/ui documentation in this template. The guide is split into smaller files so agents (and humans) can jump to the topic they need.
📚 Topics
-
Installation
SeeSHADCN_INSTALLATION.mdfor:- Installing individual components (core, dashboard, data display, advanced)
- Command examples for
pnpm dlx shadcn@latest add
-
Dashboard Patterns
SeeSHADCN_DASHBOARD_PATTERNS.mdfor:- Stats cards layout
- Data table with dropdown actions
- Create/edit form in a dialog
- Loading states with Skeleton
- Tabs for different views
- Status badges
- Toast notifications (with tRPC mutations)
- Form with validation (react-hook-form + zod)
- Side sheet for details
- Command palette (search, Cmd/Ctrl+K)
-
Design & Layout
SeeSHADCN_DESIGN_AND_LAYOUT.mdfor:- Color schemes (semantic tokens)
- Spacing conventions
- Icons (lucide-react)
- Responsive grids and hide-on-mobile
- Performance tips (lazy dialogs, virtualization, skeletons, optimistic updates, debounce)
How Agents Should Use These Docs
-
Need to add a component?
UseSHADCN_INSTALLATION.mdfor the exactpnpm dlx shadcn@latest addcommands. -
Building a dashboard or CRUD UI?
UseSHADCN_DASHBOARD_PATTERNS.mdfor copy-paste patterns (tables, dialogs, forms, toasts, sheets, etc.). -
Styling and layout?
UseSHADCN_DESIGN_AND_LAYOUT.mdfor tokens, spacing, responsive patterns, and performance.
Resources
- shadcn/ui: https://ui.shadcn.com/
- Tailwind CSS: https://tailwindcss.com/
- Lucide Icons: https://lucide.dev/
- React Hook Form: https://react-hook-form.com/