Interactive Cheatsheet for shadcn/ui components with live previews, copy-paste ready code examples, and comprehensive documentation for 45 components.
π Free & Open Source by ShadcnStore - Your gateway to premium UI components, dashboards, and templates.
π― View Live Demo | π§© Explore Premium Blocks | π₯οΈ Get Dashboard Template
The shadcn/ui Cheatsheet is the most comprehensive, interactive reference guide for shadcn/ui components available. Built by developers, for developers, it provides instant access to live component previews, copy-paste ready code snippets, and complete documentation for every shadcn/ui component.
Whether you're just getting started with shadcn/ui or you're a seasoned developer looking for quick reference, this Cheatsheet accelerates your development workflow and helps you build beautiful, accessible interfaces faster.
Experience the Cheatsheet in action:
- π Interactive Cheatsheet - Complete component reference with live previews
Note: Every component includes live previews, usage examples, installation commands, and copy-paste ready code snippets.
- 45 Components - Every shadcn/ui component covered
- Live Previews - Interactive component demonstrations
- Multiple Variants - All component variations and examples
- Real-time Updates - Always up-to-date with latest shadcn/ui releases
- Copy-Paste Ready - One-click code copying for components and examples
- Installation Commands - Package manager specific install commands (npm, pnpm, yarn, bun)
- Import Statements - Ready-to-use import statements
- Usage Examples - Practical implementation examples
- Theme Customizer - Real-time theme switching and preview
- Smart Search - Find components instantly with fuzzy search
- Category Filtering - Browse by component categories
- Keyboard Navigation - Full keyboard accessibility
- URL Bookmarking - Direct links to specific components
- Lightning Fast - Built with Next.js 15 & Turbopack
- Responsive Design - Mobile-first approach
- Dark/Light Mode - Beautiful theme switching
- Smooth Animations - Polished user experience
- Scroll Position Memory - Maintains scroll position during navigation
- Node.js 18+
- pnpm (recommended), npm, yarn, or bun
# Clone the repository
git clone https://github.com/silicondeck/shadcn-cheatsheet.git
cd shadcn-cheatsheet
# Install dependencies
pnpm install
# Start development server
pnpm dev
Open http://localhost:3000 in your browser, or visit the live demo at https://shadcnstore.com/cheatsheet.
# Build for production
pnpm build
# Start production server
pnpm start
- β Button - Buttons with multiple variants and sizes
- β Input - Text inputs with validation states
- β Select - Dropdown select components
- β Dialog - Modal dialogs
- β Sheet - Side panels and drawers
- β Table - Advanced data tables
- β Card - Content cards with headers and footers
- β Navigation Menu - Complex navigation with dropdowns
- β Calendar - Date picker calendars
- β Accordion - Collapsible content sections
- β Sonner Toast - Notification toasts
And 34+ more components covering all shadcn/ui functionality!
# Start development server with hot reload
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run linting
pnpm lint
# Run linting with auto-fix
pnpm lint --fix
# Type checking
pnpm type-check
π shadcn-cheatsheet/
βββ π app/ # Next.js App Router
β βββ π layout.tsx # Root layout
β βββ π page.tsx # Homepage
β βββ π globals.css # Global styles
β βββ π api/ # API routes
β βββ π registry/ # Component registry API
βββ π components/ # React components
β βββ π ui/ # shadcn/ui components
β βββ π layout/ # Layout components
β βββ π cards/ # Component preview cards
β βββ π search/ # Search functionality
β βββ π theme-customizer/ # Theme customization
βββ π lib/ # Utility libraries
β βββ π search.ts # Fuzzy search logic
β βββ π registry.ts # Component registry
β βββ π utils.ts # Utility functions
βββ π data/ # Static data
β βββ π components-simple.ts # Component definitions
βββ π registry/ # Component examples
β βββ π default/
β βββ π examples/ # Component example files
βββ π hooks/ # Custom React hooks
βββ π types/ # TypeScript definitions
βββ π public/ # Static assets
- Next.js 15 - React framework with App Router
- React 19 - Latest React with concurrent features
- TypeScript - Full type safety
- shadcn/ui - Component library
- Radix UI - Accessible primitives
- Tailwind CSS v4 - Utility-first styling
- Lucide React - Beautiful icons
Each component card displays:
- Component name and description
- Installation command for selected package manager
- Code variants with individual copy buttons
- Dependencies and documentation links
- Expand/collapse for detailed view
Switch between package managers using the tab interface:
# npm, # yarn, # pnpm, # bun
- Global Search - Press
Ctrl+K
orCMD+k
to open command palette - Category Filters - Click category badges to filter components
- Component Preview - Click any component for live preview
- Keyboard Navigation - Use arrow keys in preview mode
- Theme Customizer - Real-time theme switching and customization
- Instant Reference - No more digging through documentation
- Copy-Paste Ready - Get code snippets immediately
- Live Previews - See exactly how components look and behave
- Complete Examples - Real-world usage patterns
- Every Component - Complete shadcn/ui library coverage
- All Variants - Every possible component variation
- Up-to-Date - Always current with latest releases
- Best Practices - Proper usage examples and patterns
- Keyboard Navigation - Full accessibility support
- Search Everything - Find any component instantly
- Mobile Ready - Works perfectly on all devices
- Performance Optimized - Fast loading and smooth interactions
This free Cheatsheet is part of the ShadcnStore ecosystem! Discover more resources to accelerate your development:
π₯οΈ Opensource Dashboard Template
Complete admin dashboard with 30+ pages, built with shadcn/ui:
- 2 Dashboard Variants - Overview & Analytics dashboards
- App Demos - Mail, Tasks, Chat, Calendar applications
- Authentication Pages - Login, signup, password recovery
- Settings Pages - Account, billing, appearance management
- Live Theme Customizer - Real-time theme editing with tweakcn
- Available in Vite & Next.js - Choose your preferred framework
π§© Premium UI Blocks
150+ production-ready UI blocks for rapid development:
- Application Blocks - Dashboard components and layouts
- Marketing Blocks - Landing page sections and CTAs
- E-commerce Blocks - Shopping cart, product cards, checkout flows
- Free Blocks - No-cost starter components
- Copy-Paste Ready - Drop into any shadcn/ui project
- Landing Page Collection - Business-ready marketing templates
- E-commerce Templates - Complete online store solutions
- SaaS Starter Kits - Full-stack application templates
- SaaS Applications - Complete dashboard and admin solutions
- Marketing Websites - Beautiful, conversion-optimized landing pages
- E-commerce Sites - Professional online store interfaces
- Internal Tools - Admin panels and business applications
π― Explore ShadcnStore - Premium blocks, dashboards and templates for modern web applications.
We welcome contributions from the community! Here's how you can help make this Cheatsheet even better:
- π Report Bugs - Found an issue? Create an issue
- π‘ Suggest Features - Have ideas for improvements? We'd love to hear them!
- π§ Submit Pull Requests - Fix bugs, add features, or improve documentation
- β Star the Repository - Show your support and help others discover this project!
- Fork the repository - Click the fork button at the top of this page
- Clone your fork -
git clone https://github.com/yourusername/shadcn-cheatsheet.git
- Create a feature branch -
git checkout -b feature/amazing-feature
- Make your changes - Add your improvements
- Test thoroughly - Ensure everything works correctly
- Commit your changes -
git commit -m 'Add amazing feature'
- Push to your branch -
git push origin feature/amazing-feature
- Open a Pull Request - Submit your changes for review
- Use TypeScript for all new code
- Follow the existing code style and formatting
- Add type definitions for new components or props
- Test your changes across different screen sizes
- Write clear, descriptive commit messages
- Update documentation for new features
When adding new components:
- Follow the existing component structure in
data/components-simple.ts
- Create example files in
registry/default/examples/
- Include multiple variants where applicable
- Add proper TypeScript types
- Test accessibility and keyboard navigation
This project is licensed under the MIT License - see the LICENSE file for details.
You are free to:
- β Use for personal and commercial projects
- β Modify and distribute the code
- β Include in your own projects
- β Create derivative works
Attribution to ShadcnStore is appreciated but not required.
This Cheatsheet is built on the foundation of incredible open-source projects and the amazing work of their maintainers:
- shadcn - For creating the amazing shadcn/ui component library
- shadcn/ui - Beautiful and accessible React components
- Radix UI - Low-level accessible UI primitives
- Tailwind CSS - Utility-first CSS framework
- Next.js - The React framework for production
- Vercel - Platform for frontend frameworks and static sites
- Lucide - Beautiful & consistent icon library
- π Bug Reports - GitHub Issues
- π¬ Feature Requests - GitHub Discussions
- π Website - ShadcnStore.com
- π¦ Twitter - @shadcnstore
- β Star this repository to show your support
- π Share with your team and fellow developers
- π¦ Tweet about it to help others discover this resource
- β€οΈ Sponsor the project to help us maintain and improve it
Every star helps more developers discover this resource
A free & open-source project by ShadcnStore - Premium UI components, dashboards and templates for modern web development.
Made with β€οΈ for the React and shadcn/ui community