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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bandofai/unido-components

v0.19.1

Published

Unido Components - shadcn/ui components for AI applications

Readme

@bandofai/unido-components

Universal UI components for AI applications built with shadcn/ui and Tailwind CSS.

Features

  • Modern Design: Built on shadcn/ui with Tailwind CSS
  • Accessible: ARIA-compliant components using Radix UI primitives
  • 🎨 Themeable: CSS custom properties with dark mode support
  • 📦 Tree-shakeable: Import only what you need
  • 🔒 Type-safe: Full TypeScript support
  • 🎯 Framework Agnostic: Works with any AI provider through Unido

Installation

pnpm add @bandofai/unido-components

Peer Dependencies

Make sure you have React installed:

pnpm add react react-dom

Quick Start

1. Import Global Styles

Add this to your app's entry point (e.g., index.tsx or App.tsx):

import '@bandofai/unido-components/globals.css';

2. Use Components

import { Card, Button, Form } from '@bandofai/unido-components';

function App() {
  return (
    <Card>
      <Card.Header>
        <h2>Welcome</h2>
      </Card.Header>
      <Card.Body>
        <p>This is a card component</p>
      </Card.Body>
      <Card.Footer>
        <Button>Click me</Button>
      </Card.Footer>
    </Card>
  );
}

Components

High-Level Components

Card

Versatile container with header, body, and footer sections.

<Card className="max-w-md">
  <Card.Header>Header Content</Card.Header>
  <Card.Body>Main Content</Card.Body>
  <Card.Footer>Footer Content</Card.Footer>
</Card>

Table

Display tabular data with sorting and styling options.

<Table
  columns={[
    { id: 'name', header: 'Name', accessor: 'name' },
    { id: 'email', header: 'Email', accessor: 'email' },
    { id: 'role', header: 'Role', accessor: 'role', align: 'right' },
  ]}
  data={users}
  striped
  hoverable
  emptyMessage="No users found"
/>

List

Display a list of items with optional icons and actions.

<List
  items={[
    { id: 1, title: 'Item 1', description: 'Description', icon: '📄' },
    { id: 2, title: 'Item 2', description: 'Description', icon: '📁' },
  ]}
  onItemClick={(item) => console.log(item)}
  emptyMessage="No items to display"
/>

Form

Flexible form component with validation.

<Form
  fields={[
    {
      name: 'email',
      label: 'Email',
      type: 'email',
      placeholder: '[email protected]',
      required: true,
      validation: (value) => {
        if (!value.includes('@')) return 'Invalid email';
      },
    },
    {
      name: 'role',
      label: 'Role',
      type: 'select',
      options: [
        { label: 'Admin', value: 'admin' },
        { label: 'User', value: 'user' },
      ],
    },
  ]}
  onSubmit={async (data) => {
    console.log('Form submitted:', data);
  }}
  submitLabel="Sign Up"
/>

shadcn/ui Components

Direct access to shadcn/ui primitives for custom UIs:

Button

import { Button } from '@bandofai/unido-components';

<Button variant="default">Default</Button>
<Button variant="destructive">Delete</Button>
<Button variant="outline">Outline</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>

<Button size="sm">Small</Button>
<Button size="default">Default</Button>
<Button size="lg">Large</Button>

Input

import { Input, Label } from '@bandofai/unido-components';

<div className="space-y-2">
  <Label htmlFor="email">Email</Label>
  <Input id="email" type="email" placeholder="[email protected]" />
</div>

Select

import {
  Select,
  SelectTrigger,
  SelectValue,
  SelectContent,
  SelectItem,
} from '@bandofai/unido-components';

<Select value={value} onValueChange={setValue}>
  <SelectTrigger>
    <SelectValue placeholder="Select an option" />
  </SelectTrigger>
  <SelectContent>
    <SelectItem value="option1">Option 1</SelectItem>
    <SelectItem value="option2">Option 2</SelectItem>
  </SelectContent>
</Select>

Textarea

import { Textarea } from '@bandofai/unido-components';

<Textarea placeholder="Enter description" rows={4} />

Theming

CSS Custom Properties

Components use CSS custom properties that you can override:

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --accent: 210 40% 96.1%;
  --destructive: 0 84.2% 60.2%;
  --border: 214.3 31.8% 91.4%;
  --radius: 0.5rem;
}

Dark Mode

Apply the dark class to enable dark mode:

<div className="dark">
  {/* All components inside will use dark mode */}
  <Card>...</Card>
</div>

Custom Classes

All components accept className for Tailwind utilities:

<Card className="shadow-lg border-2 max-w-md mx-auto">
  <Card.Header className="bg-primary text-primary-foreground">
    Custom styled header
  </Card.Header>
</Card>

Utilities

cn() Helper

Merge class names conditionally:

import { cn } from '@bandofai/unido-components';

<div className={cn(
  'base-class',
  isActive && 'active-class',
  isDisabled && 'disabled-class'
)}>
  Content
</div>

Migration

Upgrading from an older version? See MIGRATION.md for a complete guide.

TypeScript Support

All components are fully typed with TypeScript:

import type {
  CardProps,
  TableProps,
  TableColumn,
  TableRow,
  FormProps,
  FormField,
  ButtonProps,
} from '@bandofai/unido-components';

Development

Build

pnpm install
pnpm run build

Watch Mode

pnpm run dev

Type Check

pnpm run type-check

License

MIT

Credits