Demo - https://ui-component-library-ai-sdk.vercel.app/
component library for ai-sdk
want cross platform gluestack instead? Try these: repo - https://github.com/chasesdev/ai-sdk-gluestack
demo - https://ai-sdk-gluestack.vercel.app/
Explore the library in action:
- π Live Demo - Main application showcase
- π Storybook Documentation - Interactive component documentation
- π± Mobile Showcase - Optimized mobile experience
- π» Tablet Showcase - Responsive tablet layout
- π₯οΈ Desktop Showcase - Full-featured desktop layout
- π GitHub Repository - Source code and contributions
This library is built with:
- β‘ Next.js 15 - The React framework for production with App Router
- π TypeScript 5 - Type-safe JavaScript for better developer experience
- π¨ Tailwind CSS 4 - Utility-first CSS framework for rapid UI development
- π§© shadcn/ui - High-quality, accessible components built on Radix UI
- π― Lucide React - Beautiful & consistent icon library
- π Framer Motion - Production-ready motion library for React
- π¨ Next Themes - Perfect dark mode in 2 lines of code
- π£ React Hook Form - Performant forms with easy validation
- β Zod - TypeScript-first schema validation
- π» Zustand - Simple, scalable state management
- π TanStack Query - Powerful data synchronization for React
- π Axios - Promise-based HTTP client
- π TanStack Table - Headless UI for building tables and datagrids
- π±οΈ DND Kit - Modern drag and drop toolkit for React
- π Recharts - Redefined chart library built with React and D3
- πΌοΈ Sharp - High performance image processing
- π Next Intl - Internationalization library for Next.js
- π Date-fns - Modern JavaScript date utility library
- πͺ ReactUse - Collection of essential React hooks for modern development
- π€ AI-Optimized - Components specifically designed for AI/ML application interfaces
- π¨ Beautiful UI - Built on shadcn/ui with advanced interactions and animations
- π Type Safety - Fully typed with TypeScript and Zod validation
- π± Responsive - Mobile-first design principles with smooth animations
- π Data-Rich - Specialized components for charts, tables, and data visualization
- π Well Documented - Comprehensive Storybook documentation with live examples
- π i18n Ready - Multi-language support built-in
- β‘ Performance - Optimized for production with tree-shaking and code splitting
- π¨ Themeable - Dark mode and customizable theming out of the box
- βΏ Accessible - WCAG compliant components built on Radix UI
# Install dependencies
yarn install
# Start Next.js development server
yarn dev
# Start Storybook component explorer
yarn storybook- Next.js App: http://localhost:3000 - Demo application
- Storybook: http://localhost:6006 - Component documentation
# Build Next.js app
yarn build:next
# Build Storybook
yarn build:storybook
# Build both
yarn buildThe library documentation and demo are configured for single-project deployment to Vercel with path-based routing:
- Demo App: Deployed at your root domain (e.g.,
ui-library.vercel.app) - Component Docs (Storybook): Automatically available at
/storybookpath (e.g.,ui-library.vercel.app/storybook)
-
Push to GitHub - Commit and push your changes
git add . git commit -m "Ready for deployment" git push
-
Connect to Vercel
- Visit vercel.com and import your repository
- Vercel will auto-detect the Next.js framework
-
Configure Environment Variables (if needed)
- Add any required environment variables in Vercel dashboard
- Include database connection strings, API keys, etc.
-
Deploy
- Click "Deploy" - Vercel will run
yarn buildwhich builds both Next.js and Storybook - Your app will be live at
your-project.vercel.app - Storybook will be accessible at
your-project.vercel.app/storybook
- Click "Deploy" - Vercel will run
# Install Vercel CLI globally
npm i -g vercel
# Deploy to preview
vercel
# Deploy to production
vercel --prodThe build process automatically:
- Builds the Next.js demo application to
.next/ - Builds Storybook documentation to
public/storybook/ - Next.js serves Storybook static files from the public directory
Both the demo app and component documentation are deployed in a single Vercel project, simplifying deployment and management.
src/
βββ app/ # Next.js App Router demo pages
βββ components/
β βββ ai-sdk/ # UI Component Library - for AI SDK components
β β βββ Connection.tsx # Connection status component
β β βββ Connection.stories.tsx # Storybook stories
β β βββ ... # More components
β βββ ui/ # Base shadcn/ui components
βββ hooks/ # Custom React hooks
βββ lib/ # Utility functions and configurations
Specialized components for AI/ML applications:
- Connection - Real-time connection status indicators
- Graph & Visualization - Data visualization components
- Forms & Inputs - AI-optimized form components
- Data Display - Components for displaying AI outputs
Complete set of accessible, customizable components:
- Layout: Card, Separator, Aspect Ratio, Resizable Panels
- Forms: Input, Textarea, Select, Checkbox, Radio Group, Switch
- Feedback: Alert, Toast (Sonner), Progress, Skeleton
- Navigation: Breadcrumb, Menubar, Navigation Menu, Pagination
- Overlay: Dialog, Sheet, Popover, Tooltip, Hover Card
- Data Display: Badge, Avatar, Calendar, Table
- Tables: Powerful data tables with sorting, filtering, pagination (TanStack Table)
- Charts: Beautiful visualizations with Recharts
- Drag & Drop: Modern DnD functionality with DND Kit
- Animations: Smooth micro-interactions with Framer Motion
- Theme Switching: Built-in dark/light mode support
All components are fully documented in Storybook with:
- Interactive Examples - Try components with live controls
- Props Documentation - Complete API reference
- Usage Examples - Code snippets and best practices
- Accessibility Notes - WCAG compliance information
- Theming Guide - Customization options
Start Storybook locally with yarn storybook or view the deployed docs at your /storybook path.
This is an open component library. Contributions are welcome!
- Fork the repository
- Create a feature branch
- Add your component with Storybook stories
- Submit a pull request
MIT License - feel free to use in your projects.
Built for the AI/ML developer community π