2026-08-29 18:19:39 -07:00
2026-08-21 12:49:01 -07:00
2026-08-21 12:49:01 -07:00

@hanzo/ui

@hanzo/ui

Open in Hanzo Edit with Hanzo Deploy with Hanzo

The React component library for AI applications. 157 components on one substrate, so the same import runs on web, native and desktop.

npm Apache-2.0 OR MIT docs

One substrate

Every component renders through @hanzo/gui primitives on the @hanzo/tokens scale. No Radix, no Tailwind, no utility classes — style props and $ tokens, which is what lets one import serve React, React Native (Expo) and Tauri.

Other frameworks are their own packages, because a theme does not port: @hanzo/svelte for Svelte 5.

Quick start

pnpm add @hanzo/ui
import { Hanzo, Button, Card, CardHeader, CardTitle, CardContent, Input } from '@hanzo/ui'

export function App() {
  return (
    <Hanzo>
      <Card>
        <CardHeader><CardTitle>Welcome</CardTitle></CardHeader>
        <CardContent>
          <Input placeholder="Enter text…" />
          <Button>Submit</Button>
        </CardContent>
      </Card>
    </Hanzo>
  )
}

<Hanzo> is the whole setup — it carries the gui config, the theme and the stylesheet. There is no CSS import and no generator step.

Import surface

Import What you get
@hanzo/ui the component surface — Button, Card*, Dialog*, Input, Select*, Tabs*, Popover*, Command*, …
@hanzo/ui/product charts, metrics, PageHeader, StatusTag, EmptyState, ComboBox, SlideOver, Toast
@hanzo/ui/chat Thread, Message, Composer, Sidebar, Header, Code, Sources
@hanzo/ui/chat/pure sends, ready, pinned — decisions with no React, loads in Node
@hanzo/ui/models ModelPicker, parseModels, fetchModelCatalog, defaultModel
@hanzo/ui/data RecordsView, DataTable, typed field editors
@hanzo/ui/core · /tokens cn, font vars, the colour/theme/radii/spacing scale
@hanzo/ui/theme.css · /styles.css tokens alone, or the complete sheet
@hanzo/ui/primitives/<Name> one member, for hosts that modularize imports
@hanzo/ui/{canvas,dashboard,usage,gitops} optional-peer kits

CLI

npx @hanzo/ui add button
npx @hanzo/ui add @aceternity/spotlight   # 35+ external registries

Packages

Package Purpose
@hanzo/ui the component library
@hanzo/svelte the Svelte 5 kit
@hanzo/react React primitives
@hanzo/data records, data tables, typed field editors
@hanzo/canvas · @hanzo/dashboard service/deploy canvas, dashboard kit
@hanzo/commerce · @hanzo/checkout · @hanzo/shop commerce
@hanzo/brand · @hanzo/tokens branding and design tokens
@hanzo/event telemetry client (POST /v1/event)

Development

pnpm install
pnpm --filter @hanzo/ui... build   # the `...` builds workspace deps first
Command
pnpm --filter @hanzo/ui test:unit styles + render surface
pnpm --filter @hanzo/ui test:consumer packs the tarball, installs it outside the repo, asserts computed styles
pnpm typecheck · pnpm lint

The shadcn CLI, the component registry and the docs sites live in hanzoai/shadcn.

Docs at ui.hanzo.ai. Licensed Apache-2.0 OR MIT, at your option.

S
Description
React component library for AI applications
Readme
201 MiB
Languages
TypeScript 84.4%
MDX 11.6%
JavaScript 2.2%
HTML 0.9%
CSS 0.8%