AI summary by TwinMind
These New Components Blew My Mind
Theo - t3․gg
7m 5s
New Components Release Overview
- Shad CN UI major release with significant new components
- Focus on component library expansion
- All components follow Shad's copy-paste philosophy (source code in codebase, not dependencies)
Carousel Component
- Finally added carousel component to Shad UI
- Built on top of Embla Carousel library
- Lightweight carousel with fluid motion
- Great swipe precision for mobile compatibility
- Provides standardized solution with accessibility features
- Source code included for customization
Drawer Component
- New drawer component with mobile-optimized behavior
- Slides up from bottom with proper touch interactions
- Includes cancel/submit buttons
- Handles page layout sizing correctly
- Smooth animations and interactions
Pagination Component
- Previously missing from Shad UI library
- Generic pagination solution
- Supports custom link components
- Includes all necessary navigation behaviors
Resizable Component
- Built on react-resizable-panels by Brian Vaughn (React Dev Tools creator)
- Addresses complex drag-and-drop resizing challenges
- Reference to speaker's ModView project with advanced resizable UI
- Customizable sidebar, drag-and-drop between panels
- Complex moderation tool interface
- Previously required custom solutions with react-mosaic
- Now available as standard Shad UI component
Sonner Toast Notifications
- New toast notification system
- Smooth popup animations with proper hiding behaviors
- Multiple toast support with stacking
- Mobile-optimized interactions
- 120fps smooth performance
- Includes event handling (onclick, action labels, descriptions)
CLI Improvements
- Enhanced CLI functionality for component management
- Integration with v0 (Vercel's AI component generation)
- Automatically includes missing Shad UI dependencies
- Components remain in codebase (not external packages)
- Custom Tailwind prefix configuration
- Automatic utility class prefixing
- Better integration with Docusaurus/Nextra
- TypeScript config detection for Tailwind
- Improved file structure inference
Benefits and Philosophy
- Components are tasteful and correct but lack personality
- Not for unique/standout websites
- Provides solid foundation pieces
- No breaking changes on updates (components live in your codebase)
- Solves difficult implementation challenges (accessibility, mobile behavior, animations)
