How heroui-inc/heroui works
HeroUI is a React UI component library paired with a Tailwind-oriented styles and theme package. The primary workflow is an application developer composing accessible React components, whose components apply style variants and render UI; the repository also provides AI-oriented skills and documentation scripts as a distinct authoring aid. The graph preserves broad component domains and sampled internal behavior. Many component relationships are documented only by package-level description or tree structure, so unsampled links are shown as unverified rather than asserted calls.
Main entry points: components/index.ts Component API · toast.tsx Feedback UI · search-field.tsx Search Field · components/index.ts Component Variants
Components 21
React Components
- Component API
packages/react/src/components/index.ts - Form Controls
packages/react/src/components - Selection Controls
packages/react/src/components - Date and Time
packages/react/src/components - Overlays
packages/react/src/components - Feedback UI
packages/react/src/components/toast/toast.tsx - Layout and Display
packages/react/src/components - Search Field
packages/react/src/components/search-field/search-field.tsx - Sheet Drag Behavior
packages/react/src/components/sheet/use-sheet-handle-drag.ts - Toast Queue
packages/react/src/components/toast/toast-queue.ts
Styles and Theme
- Component Variants
packages/styles/src/components/index.ts - Theme Styles
packages/styles/src/index.ts
Shared Runtime
- React Aria
- React Hooks
packages/react/src/hooks - Shared Utilities
packages/react/src/utils - Icon Components
packages/react/src/components/icons.tsx
AI Skills
- Agent Skills
skills/heroui-react/scripts - Migration Skills
skills/heroui-migration/scripts - Native Skills
skills/heroui-native/scripts
Other components
- React Developer
- Rendered Application UI
Connections 27
- React Developer → Component API: composes
README.md - Component API → Form Controls: exposes
- Component API → Selection Controls: exposes
- Component API → Date and Time: exposes
- Component API → Overlays: exposes
- Component API → Feedback UI: exposes
- Component API → Layout and Display: exposes
- Search Field → React Aria: renders with
packages/react/src/components/search-field/search-field.tsx - Search Field → Component Variants: uses variants
packages/react/src/components/search-field/search-field.tsx - Search Field → Icon Components: renders icon
packages/react/src/components/search-field/search-field.tsx - Search Field → Shared Utilities: resolves classes
packages/react/src/components/search-field/search-field.tsx - Sheet Drag Behavior → React Aria: reads props
packages/react/src/components/sheet/use-sheet-handle-drag.ts - Sheet Drag Behavior → Shared Utilities: animates values
packages/react/src/components/sheet/use-sheet-handle-drag.ts - Feedback UI → Toast Queue: uses queue
packages/react/src/components/toast/toast.tsx - Feedback UI → React Hooks: measures height
packages/react/src/components/toast/toast.tsx - Feedback UI → Component Variants: uses variants
- Feedback UI → Icon Components: renders icons
packages/react/src/components/toast/toast.tsx - Feedback UI → Rendered Application UI: renders
- Component Variants → Theme Styles: contributes styles
- Form Controls → React Aria: builds on
- Selection Controls → React Aria: builds on
- Date and Time → React Aria: builds on
- Overlays → React Aria: builds on
- Layout and Display → Rendered Application UI: renders
- React Developer → Agent Skills: consults
- React Developer → Migration Skills: consults
- React Developer → Native Skills: consults