Welcome to Craft UI
Craft UI is a comprehensive collection of beautifully designed, accessible UI components for React and Next.js applications. Built with modern web technologies, it provides everything you need to create stunning user interfaces quickly and efficiently.What is Craft UI?
Craft UI is organized into multiple packages:- Base UI - A collection of 35+ foundational components built on top of Base UI React, providing accessible, unstyled primitives
- Craft UI - A curated set of 9 advanced components with stunning animations and interactions powered by Framer Motion
- Loaders - 11 beautiful loading spinners and animations for various loading states
- Hooks - 10 utility React hooks for common patterns
Key features
Type-safe
Built with TypeScript for full type safety and excellent developer experience
Accessible
Components built on Base UI React primitives with ARIA attributes and keyboard navigation
Customizable
Fully customizable with Tailwind CSS and CSS variables for theming
Animated
Smooth animations powered by Framer Motion (motion package)
What’s included
Craft UI comes with a comprehensive set of components and utilities:Base UI components (35+)
Foundational components for building any interface:- Form controls: Button, Input, Checkbox, Radio, Select, Switch, Slider, Toggle
- Navigation: Menu, Menubar, Navigation Menu, Tabs, Toolbar
- Overlays: Dialog, Alert Dialog, Popover, Tooltip, Context Menu
- Data display: Avatar, Meter, Progress, Separator, Scroll Area
- Layout: Accordion, Collapsible, Field, Fieldset, Form
- Advanced: Autocomplete, Combobox, Number Field, Toast
Craft UI components (9)
Advanced components with stunning animations:- AnimatedTooltip - Interactive tooltips with smooth hover animations
- Cursor - Custom cursor effects that follow mouse movement
- Dock - macOS-style dock with magnification effects
- Magnetic - Elements that magnetically attract to cursor
- Marquee - Infinite scrolling text and content
- Stepper - Animated step-by-step progress indicators
- TextScramble - Scrambling text reveal animations
- TextTyping - Typewriter effect for text
- Timeline - Animated timeline components
Loaders (11)
Beautiful loading spinners and animations:- Classic - Simple spinning circle loader
- JumpingDots - Four dots bouncing vertically
- LeapFrog - Dots rotating in leapfrogging pattern
- LineSpinner - 12 lines arranged in circle with fade
- LineWobble - Horizontal bar wobbling on track
- NewtonsCradle - Physics-inspired swinging dots
- Orbit - Two dots orbiting horizontally
- PulsatingDots - Five dots pulsing in wave pattern
- Spinner - Minimal circular spinner
- Spiral - Dots pulsing in spiral sequence
- Zoomies - Horizontal bar zooming continuously
Hooks (10)
Utility hooks to enhance your applications:useCallback- Optimized callback memoizationuseClickOutside- Detect clicks outside elementsuseConfetti- Confetti celebration effectsuseDebounce- Debounce values and callbacksuseHydrated- Check if component is hydrateduseIsMobile- Responsive mobile detectionuseMediaQuery- Match media queriesuseMounted- Check if component is mounteduseOptimistic- Optimistic UI updatesuseQueryString- URL query string management
Quick links
Installation
Get started by installing Craft UI in your project
Quickstart
Build your first component in under 5 minutes
Base components
Explore the foundational UI components
Craft components
Discover advanced animated components
Loaders
Beautiful loading animations and spinners
Hooks
Learn about utility hooks for React
GitHub
View the source code and contribute
Technology stack
Craft UI is built on top of modern, battle-tested technologies:- React 19+ - The latest version of React with improved performance
- TypeScript - Type-safe development experience
- Tailwind CSS 4 - Utility-first CSS framework
- Framer Motion - Production-ready animation library
- Base UI React - Accessible component primitives
- class-variance-authority - Type-safe variant styling
Design philosophy
Craft UI follows these core principles:- Accessibility first - All components are built with accessibility in mind, using semantic HTML and ARIA attributes
- Developer experience - Full TypeScript support, clear documentation, and intuitive APIs
- Customization - Easy to customize with Tailwind CSS and CSS variables
- Performance - Optimized for production with minimal bundle size
- Modern - Built with the latest web technologies and best practices
Community and support
Craft UI is open source and welcomes contributions from the community. If you encounter any issues or have suggestions, please feel free to:- Open an issue on GitHub
- Submit a pull request with improvements
- Share your projects built with Craft UI
Craft UI is currently in active development. Some APIs may change before the 1.0 release.