Skip to content

Xenial-Devil/Saha-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

252 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ Saha UI

Ultra-Modern React Component Library

npm version npm downloads license stars

A beautiful, accessible, and type-safe React component library built with
TypeScript โ€ข Tailwind CSS v4 โ€ข OKLCH Colors โ€ข Glass Morphism
โœ… Next.js 15/16 Ready โ€ข App Router โ€ข Server Components


โœจ Features

  • ๐ŸŽจ 98 Modern Components - Accordion, Affix, Alert, AppBar, AspectRatio, Autocomplete, Avatar, AvatarGroup, Backdrop, Badge, BottomNavigation, Breadcrumb, Button, ButtonGroup, Calendar, Card, Carousel, Chart (10 chart types), Checkbox, Chip, CodeEditor, Collapsible, ColorPicker, Combobox, Command, Container, ContextMenu, DataTable, DatePicker, Dialog, Drawer, Dropdown, Empty, Field, FileInput, FloatingActionButton, Form, Grid, HoverCard, IconButton, Image, Input, InputOTP, Item, Kbd, Label, Link, List, Masonry, Menubar, NativeSelect, NavigationMenu, Notification, NumberInput, Pagination, Paper, PlayButton, Popover, Progress, Radio, Rating, Resizable, Result, ScrollArea, Section, Segmented, Select, Separator, Skeleton (6 presets), Slider, Snackbar, Sonner, SpeedDial, Spinner, Stack, StatCard, Stepper, Steps, Switch, Tab, Table, Tag, TagInput, TextArea, TextEditor, ThemeProvider, ThemeToggle, Timeline, Toast, Toggle, ToggleGroup, Tooltip, Tour, Transfer, Tree, Typography, Upload, VideoPlayer
  • โšก Next.js 15/16 Ready - Full App Router support with Server & Client Components
  • ๐ŸŒ“ Dark Mode - Seamless theme switching with full dark mode support
  • ๐Ÿ”ฎ Glass Morphism - Beautiful backdrop blur effects across components
  • ๐ŸŽฏ Type-Safe - Full TypeScript support with comprehensive prop types
  • โ™ฟ Accessible - ARIA-compliant with keyboard navigation
  • ๐ŸŽญ CVA Variants - Type-safe variant management with class-variance-authority
  • ๐ŸŽจ OKLCH Colors - Perceptually uniform color system for accurate theming
  • โšก Tree-Shakeable - Import only what you need, optimized bundle size
  • ๐Ÿ“ฆ Modular - Individual component imports for maximum flexibility
  • ๐Ÿ“ฑ Responsive - Mobile-first design with touch gesture support
  • ๐Ÿ”ง Customizable - Easy to extend and customize with Tailwind CSS
  • ๐Ÿ“ Flexible Sizing - All components support comprehensive size variants (xs, sm, md, lg, xl, 2xl, 3xl, 4xl)
  • ๐Ÿช 39 Custom Hooks - Comprehensive hook library including useAccordion, useAnimation, useArray, useAspectRatio, useAsync, useAvatar, useChartColors, useChartData, useClickOutside, useClipboard, useColorMode, useControllableState, useCounter, useDataTable, useDebounce, useDisclosure, useDOM, useEventListener, useFetch, useFocusTrap, useForm, useHover, useIntersectionObserver, useInterval, useLocalStorage, useMediaQuery, useMergedRefs, usePagination, usePrevious, useReducedMotion, useScrollLock, useSearchFilter, useSessionStorage, useThrottle, useTimeout, useToggle, useUpdateEffect, useValidation, useWindowSize

๐Ÿ“ฆ Installation

Initialize Saha UI (REQUIRED)

Run this command in your project root to install and setup all configuration and ready to use

# npm
npx saha-ui@latest init

# yarn
yarn dlx saha-ui@latest init

# pnpm
pnpm dlx saha-ui@latest init

This will automatically:

  • โœ… Inject CSS variables and design tokens
  • โœ… Configure Tailwind to scan Saha UI components in node_modules
  • โœ… Install required dependencies
  • โœ… Detect your Tailwind version (v3 or v4) and configure accordingly

Peer Dependencies

Saha UI requires React 18+ or React 19+:

# npm
npm install react@^18.0.0 react-dom@^18.0.0
# or
npm install react@^19.0.0 react-dom@^19.0.0

# yarn
yarn add react@^18.0.0 react-dom@^18.0.0
# or
yarn add react@^19.0.0 react-dom@^19.0.0

# pnpm
pnpm add react@^18.0.0 react-dom@^18.0.0
# or
pnpm add react@^19.0.0 react-dom@^19.0.0

Basic Usage

import { Button } from 'saha-ui';

function App() {
  return (
  <Button> Saha UI</Button>
  );
}

๐Ÿ“ฆ Components Library

โœจ 93 Beautiful Components โ€ข 39 Custom Hooks โ€ข 9 Categories

๐Ÿ—๏ธ Layout

Container    Grid
Masonry      Paper
Section      Stack

๐Ÿงญ Navigation

AppBar           Breadcrumb
BottomNav        Link
Menubar          NavMenu
Pagination       Segmented
Steps

๐Ÿ“ Forms

Autocomplete     DatePicker
Checkbox         Field
CheckboxGroup    Form
ColorPicker      Input
Combobox         InputOTP

๐Ÿ”˜ Buttons

Button           IconButton
ButtonGroup      PlayButton
FloatingAction   SpeedDial
Toggle           ToggleGroup

๐Ÿ“Š Data Display

Accordion        Label
Avatar           List
AvatarGroup      Rating
Badge            Separator
Card             Skeleton
Chip             StatCard
CodeEditor       Table
DataTable        Tabs
Empty            Tag
Image            Timeline
Kbd              Typography

๐Ÿ’ฌ Feedback

Alert            Spinner
Backdrop         Toast
Progress         Tooltip
Result           Tour
Snackbar

๐ŸŽญ Overlay

Command          Drawer
ContextMenu      Dropdown
Dialog           HoverCard
Popover

๐ŸŽฌ Media

AspectRatio      Carousel
Calendar         VideoPlayer

๐Ÿ› ๏ธ Utility

Affix            Resizable
Chart            ScrollArea
Collapsible      Transfer
DragDrop

๐Ÿช Custom Hooks

useAccordion โ€ข useAnimation โ€ข useArray โ€ข useAsync โ€ข useAvatar โ€ข useClickOutside โ€ข useClipboard โ€ข useColorMode โ€ข useDebounce โ€ข useDisclosure โ€ข useFocusTrap โ€ข useForm โ€ข useHover โ€ข useLocalStorage โ€ข useMediaQuery โ€ข usePagination โ€ข useToggle โ€ข useValidation โ€ข +24 more


๐Ÿ“– Documentation

Comprehensive guides to help you build faster

๐Ÿ“š

API Docs

Complete component reference

โšก

Examples

Interactive demos

โ™ฟ

Accessibility

A11y best practices

๐Ÿš€

Performance

Optimization tips

โ“

170+ FAQs

Common questions


๐ŸŽจ Pre-built Blocks & Templates

44+ Ready-to-use components to accelerate development

๐Ÿฆธ Hero Sections โœจ Feature Showcases ๐Ÿ’ฐ Pricing Tables
๐Ÿš€ Landing Pages ๐Ÿ›’ E-commerce ๐Ÿ“ง Contact Forms
๐Ÿ‘ฅ Team Sections ๐Ÿ’ฌ Testimonials โ“ FAQ Sections

๐ŸŽจ Browse All Blocks โ†’


๐Ÿš€ Get Started

๐Ÿ“š Documentation

Complete API reference and guides

โšก Quick Start

Install and setup in minutes

๐ŸŽจ Live Examples

Interactive component demos


๐Ÿค Contributing

We welcome contributions from the community! Whether it's:

  • ๐Ÿ› Bug reports - Help us identify issues
  • ๐Ÿ’ก Feature requests - Share your ideas
  • ๐Ÿ“ Documentation - Improve our guides
  • ๐Ÿ”ง Code contributions - Submit pull requests

Read our Contributing Guide โ†’


๐Ÿ“„ License

MIT License ยฉ2025 Saha UI

Free to use for personal and commercial projects


Built with โค๏ธ by the Saha UI Team

โญ Star on GitHub โ€ข ๐Ÿฆ Follow on Twitter โ€ข ๐Ÿ’ฌ Join Discord

Packages

No packages published

Contributors 3

  •  
  •  
  •