npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

andhera-react

v1.0.15

Published

Andhera UI – A composable React component library built with Tailwind CSS

Downloads

128

Readme

andhera-react

A composable React component library built with Tailwind CSS, designed for product teams that ship fast.

npm version license TypeScript

✨ Features

  • 🎨 25+ Production-Ready Components - Buttons, Forms, Dialogs, Tables, and more
  • 🔧 Fully Customizable - Every component exposes props for complete control
  • 📦 Tree-Shakeable - Import only what you need
  • 🎯 TypeScript First - Full type definitions included
  • Accessible - WCAG compliant with proper ARIA attributes
  • 🎭 Themeable - Built-in theme provider with customizable tokens
  • 📱 Responsive - Mobile-first design approach
  • 🚀 Zero Config - Styles auto-injected, no CSS imports needed

Installation

npm install andhera-react

Quick Start

Just import and use - styles are automatically applied!

import { Button } from "andhera-react";

function Example() {
  return <Button variant="primary">Click me</Button>;
}

Note: No need to import CSS or install Tailwind. All styles are auto-injected when you import the library.

Components

Button

import { Button } from "andhera-react";

function Example() {
  return (
    <>
      <Button variant="primary">Primary</Button>
      <Button variant="secondary">Secondary</Button>
      <Button variant="destructive">Delete</Button>
      <Button size="small">Small</Button>
      <Button size="large">Large</Button>
      <Button disabled>Disabled</Button>
    </>
  );
}

Checkbox

import { Checkbox, CheckboxGroup } from "andhera-react";

function Example() {
  return (
    <>
      {/* Single Checkbox */}
      <Checkbox label="Accept terms" onChange={(checked) => console.log(checked)} />

      {/* Checkbox Group */}
      <CheckboxGroup
        options={[
          { label: "Option 1", value: "1" },
          { label: "Option 2", value: "2" },
          { label: "Option 3", value: "3" },
        ]}
        onChange={(values) => console.log(values)}
      />
    </>
  );
}

Chip

Versatile tag/badge component for filters, selections, and labels.

import { Chip, ChipGroup, Avatar } from "andhera-react";

function Example() {
  const [selected, setSelected] = useState(false);
  const [tags, setTags] = useState(['React', 'TypeScript', 'Tailwind']);

  return (
    <ChipGroup spacing="sm">
      {/* Selectable chip */}
      <Chip 
        label="Click to select" 
        selectable 
        selected={selected} 
        onSelectionChange={setSelected}
        color="primary"
      />
      
      {/* Removable chips */}
      {tags.map(tag => (
        <Chip 
          key={tag}
          label={tag}
          removable
          onRemove={() => setTags(tags.filter(t => t !== tag))}
          color="secondary"
          variant="soft"
        />
      ))}
      
      {/* Chip with Avatar */}
      <Chip 
        label="John Doe"
        avatar={<Avatar initials="JD" bgColor="#3b82f6" size="xs" />}
        variant="soft"
        color="primary"
      />
      
      {/* Custom colored chip */}
      <Chip 
        label="Custom" 
        backgroundColor="#ec4899" 
        textColor="#fff"
      />
    </ChipGroup>
  );
}

Chip Features:

  • 5 sizes: xs, sm, md, lg, xl
  • 4 variants: filled, outlined, soft, ghost
  • 7 colors: default, primary, secondary, success, warning, error, info
  • Selectable, removable, clickable modes
  • Loading state with spinner
  • Avatar and icon support
  • Custom colors support

Toggle Switch

import { ToggleSwitch, ParentToggleSwitch } from "andhera-react";

function Example() {
  const [enabled, setEnabled] = useState(false);

  return (
    <>
      {/* Basic toggle */}
      <ToggleSwitch 
        checked={enabled} 
        onChange={setEnabled}
        label="Enable notifications"
      />
      
      {/* With loading state */}
      <ToggleSwitch 
        checked={enabled} 
        onChange={setEnabled}
        loading
        label="Saving..."
      />
      
      {/* Parent-child toggle */}
      <ParentToggleSwitch
        label="Select all"
        childSwitches={[
          { id: '1', label: 'Option 1', checked: true },
          { id: '2', label: 'Option 2', checked: false },
        ]}
        onChange={(parentChecked, children) => console.log(parentChecked, children)}
      />
    </>
  );
}

Toggle Button

import { ToggleButton, ToggleButtonGroup } from "andhera-react";

function Example() {
  const [selected, setSelected] = useState('left');

  return (
    <ToggleButtonGroup 
      value={selected}
      onChange={setSelected}
      selectionMode="single"
    >
      <ToggleButton value="left" icon={<AlignLeft />}>Left</ToggleButton>
      <ToggleButton value="center" icon={<AlignCenter />}>Center</ToggleButton>
      <ToggleButton value="right" icon={<AlignRight />}>Right</ToggleButton>
    </ToggleButtonGroup>
  );
}

Dialog

import { Dialog } from "andhera-react";

function Example() {
  const [open, setOpen] = useState(false);

  return (
    <>
      <Button onClick={() => setOpen(true)}>Open Dialog</Button>
      <Dialog
        open={open}
        onClose={() => setOpen(false)}
        title="Confirm Action"
        size="md"
        animation="scale"
      >
        <p>Are you sure you want to proceed?</p>
      </Dialog>
    </>
  );
}

Snackbar

import { SnackbarProvider, useSnackbar } from "andhera-react";

function App() {
  return (
    <SnackbarProvider>
      <MyComponent />
    </SnackbarProvider>
  );
}

function MyComponent() {
  const { show } = useSnackbar();

  return (
    <Button onClick={() => show({ 
      message: 'Action completed!', 
      type: 'success',
      position: 'bottom-right'
    })}>
      Show Snackbar
    </Button>
  );
}

All Components

| Category | Components | |----------|------------| | Forms | Button, Input, Checkbox, Radio, Slider, Toggle Switch, Toggle Button, Select, Multi-Select, DatePicker, FileUpload | | Feedback | Dialog, Drawer, Snackbar, Progress Bar | | Data Display | Accordion, Badge, Chip, Card, Table, Tabs, Stat Card, Skeleton | | Navigation | Breadcrumb, Pagination, Dropdown | | Layout | Grid, Stack |

👉 View Full Documentation

TypeScript Support

All components are fully typed. Import types directly:

import { 
  Button, 
  type ButtonProps, 
  type ButtonVariant,
  Chip,
  type ChipProps,
  type ChipSize,
  type ChipVariant,
  type ChipColor,
} from "andhera-react";

Icon Library

Andhera UI includes 60+ SVG icons organized by category. Icons are available as a separate import to keep your bundle size small through tree-shaking.

Import Icons

import { Search, CheckCircle, User, Heart } from "andhera-react/icons";

function Example() {
  return (
    <div>
      <Search size={24} color="#FFCB00" />
      <CheckCircle size={20} color="#00C951" />
      <User size={24} />
      <Heart size={24} color="#FB2C36" />
    </div>
  );
}

Available Icon Categories

| Category | Icons | |----------|-------| | Navigation | Search, Home, Globe, Locate, MapPin | | Status | CheckCircle, AlertCircle, XCircle, Info, HelpCircle | | Interface | Menu, X, Plus, Minus, BellDot, BellElectric | | Utility | Copy, Edit, Trash, Share, Calculator, Briefcase, Database, GridIcon, Download, Upload | | Communication | Mail, Phone, MessageCircle | | Media | Play, Pause, Stop, Volume, Webcam | | Security | Lock, LockOpen, LockKeyhole, Shield | | General | User, Users, Settings, Heart, Star, Activity, Clock, Calendar, Target, Rocket, Monitor, Smartphone, Watch | | Arrows | AArrowDown, AArrowUp | | Charts | BarChart, LineChart, PieChart | | Files | Archive, BookText, Folder | | Calendar | CalendarCheck, CalendarClock |

Icon Props

All icons accept the following props:

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | number | 24 | Width and height in pixels | | color | string | "currentColor" | Icon stroke/fill color | | className | string | "" | Additional CSS classes |

Theming

Use the built-in ThemeProvider to customize your application's look:

import { ThemeProvider, Button } from "andhera-react";

const customTheme = {
  colors: {
    primary: '#FFCB00',
    secondary: '#6b7280',
    success: '#22c55e',
    error: '#ef4444',
  },
  borderRadius: {
    sm: '4px',
    md: '8px',
    lg: '12px',
  },
};

function App() {
  return (
    <ThemeProvider theme={customTheme}>
      <Button variant="primary">Themed Button</Button>
    </ThemeProvider>
  );
}

Browser Support

| Browser | Supported | |---------|-----------| | Chrome | ✅ Last 2 versions | | Firefox | ✅ Last 2 versions | | Safari | ✅ Last 2 versions | | Edge | ✅ Last 2 versions |

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Related Packages

License

MIT © Andhera Team