Compare
Compare Haze with other UI libraries
Haze is an Astro-first library of 246 components and 130 blocks built for zero-bloat performance and AI coding workflows. Here is how it stacks up—and when another tool fits better.
Last verified · 3 architecture comparisons
Architecture comparisons
Haze UI vs. React-only component libraries in Astro
React kits require @astrojs/react and client:* hydration wrappers around dialogs, menus, tabs, and accordions. Haze ships plain .astro files built on native HTML (<dialog>, popover, <details>) so Astro marketing sites and dashboards avoid framework hydration payloads.
Read plain .astro vs. React islands benchmarkHaze UI vs. unstyled headless primitives
Headless libraries handle ARIA plumbing well but leave you designing OKLCH color contrast, focus rings, reduced-motion fallbacks, and responsive spacing from scratch. Haze arrives pre-finished in dark and light modes with 312 automated contrast checks.
Read our WCAG 2.2 AA contrast checklistHaze UI vs. manual copy-paste snippet collections
Copying raw HTML snippets leaves you wiring missing helpers, outdated Tailwind v3 classes, and broken dependencies by hand. Every Haze entry installs cleanly via the shadcn CLI (@haze/*), pulls dependent UI primitives automatically, and ships Markdown twins.
See how shadcn CLI installs work in Astro
Feature matrix at a glance
| Area | Haze UI | React UI kits | Headless primitives |
|---|---|---|---|
| Primary component format | Plain .astro source files | React / JSX runtime packages | Framework hooks or primitives |
| Install & ownership | shadcn CLI (@haze/*) into src/ | npm dependency or CLI TSX | npm package dependency |
| Overlay & disclosure JS | Native <dialog>, popover, <details> | Full React hydration + portal | JS focus trap & state hooks |
| Design system & tokens | Tailwind v4 OKLCH dark/light CSS | Varies by theme preset | None (bring your own CSS) |
| AI coding agent docs | llms.txt, .md twins, DESIGN.md, MCP | Usually prose docs or TSX MCP | Prose API references |
| Accessibility checks | axe WCAG 2.2 AA + 320 px overflow | Depends on host integration | ARIA behavior only; no contrast |
| License & pricing | 100% free & MIT-licensed | Often freemium or Pro blocks | Usually MIT core |
Comparison FAQs
When is a React or Svelte UI library better than Haze UI?
If you are building a highly stateful canvas editor, collaborative spreadsheet, or an application already embedded in Next.js or React SPA tooling, a React library fits better. Haze UI is built specifically for Astro sites, documentation portals, SaaS marketing, and server-first dashboards.
Can I use Haze UI alongside existing React islands in Astro?
Yes. Haze UI's src/styles/haze.css uses standard shadcn semantic CSS variables (--background, --card, --primary, --border, --radius), so plain .astro sections and React islands share the exact same palette and radius scale.
Is there a paid Pro tier for blocks in Haze UI?
No. All 241 components and 130 page blocks are completely free under the MIT license. Multi-block starter kits on /screens unlock free with email, and voluntary Ko-fi support or sponsorships fund maintenance.
Start with one component
Try it on its page, then install it with one command.