Skip to content

Repository files navigation

@hanzo/ui

@hanzo/ui

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

npmMITdocs

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'exportfunctionApp(){return(<Hanzo><Card><CardHeader><CardTitle>Welcome</CardTitle></CardHeader><CardContent><Inputplaceholder="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

ImportWhat you get
@hanzo/uithe component surface — Button, Card*, Dialog*, Input, Select*, Tabs*, Popover*, Command*, …
@hanzo/ui/productcharts, metrics, PageHeader, StatusTag, EmptyState, ComboBox, SlideOver, Toast
@hanzo/ui/chatThread, Message, Composer, Sidebar, Header, Code, Sources
@hanzo/ui/chat/puresends, ready, pinned — decisions with no React, loads in Node
@hanzo/ui/modelsModelSelector, fetchModelCatalog
@hanzo/ui/dataRecordsView, DataTable, typed field editors
@hanzo/ui/core · /tokenscn, font vars, the colour/theme/radii/spacing scale
@hanzo/ui/theme.css · /styles.csstokens 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

PackagePurpose
@hanzo/uithe component library
@hanzo/sveltethe Svelte 5 kit
@hanzo/reactReact primitives
@hanzo/datarecords, data tables, typed field editors
@hanzo/canvas · @hanzo/dashboardservice/deploy canvas, dashboard kit
@hanzo/commerce · @hanzo/checkout · @hanzo/shopcommerce
@hanzo/brand · @hanzo/tokensbranding and design tokens
@hanzo/eventtelemetry client (POST /v1/event)

Development

pnpm install
pnpm --filter @hanzo/ui... build # the `...` builds workspace deps first
Command
pnpm --filter @hanzo/ui test:unitstyles + render surface
pnpm --filter @hanzo/ui test:consumerpacks 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. MIT.

About

React component library for AI applications

Topics

Resources

Security policy

Stars

1 star

Watchers

1 watching

Forks

Packages

Used by

Contributors

Languages