heroui-react — community heroui-react, heroui, community, ide skills, Claude Code, Cursor, Windsurf

v2.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing accessible and customizable UI components with React and Tailwind CSS. 🚀 Beautiful, fast and modern React UI library. (Previously NextUI)

heroui-inc heroui-inc
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The heroui-react skill by heroui-inc is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Frontend Agents needing accessible and customizable UI components with React and Tailwind CSS.

Core Value

Empowers agents to build fast and modern React UI applications using HeroUI v3's accessible and customizable components, leveraging Tailwind CSS v4 and React Aria Components for seamless integration and styling.

Capabilities Granted for heroui-react

Building responsive and accessible UI components for React applications
Customizing UI components using Tailwind CSS v4
Integrating React Aria Components for enhanced accessibility features

! Prerequisites & Limits

  • Requires HeroUI v3 knowledge, ignoring prior v2 knowledge
  • Limited to React applications
  • Dependent on Tailwind CSS v4 and React Aria Components
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

heroui-react

Install heroui-react, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

HeroUI v3 React Development Guide

HeroUI v3 is a component library built on Tailwind CSS v4 and React Aria Components, providing accessible, customizable UI components for React applications.


CRITICAL: v3 Only - Ignore v2 Knowledge

This guide is for HeroUI v3 ONLY. Do NOT use any prior knowledge of HeroUI v2.

What Changed in v3

Featurev2 (DO NOT USE)v3 (USE THIS)
Provider<HeroUIProvider> requiredNo Provider needed
Animationsframer-motion packageCSS-based, no extra deps
Component APIFlat props: <Card title="x">Compound: <Card><Card.Header>
StylingTailwind v3 + @heroui/themeTailwind v4 + @heroui/styles@beta
Packages@heroui/system, @heroui/theme@heroui/react@beta, @heroui/styles@beta

WRONG (v2 patterns)

tsx
1// DO NOT DO THIS - v2 pattern 2import { HeroUIProvider } from "@heroui/react"; 3import { motion } from "framer-motion"; 4 5<HeroUIProvider> 6 <Card title="Product" description="A great product" /> 7</HeroUIProvider>;

CORRECT (v3 patterns)

tsx
1// DO THIS - v3 pattern (no provider, compound components) 2import { Card } from "@heroui/react@beta"; 3 4<Card> 5 <Card.Header> 6 <Card.Title>Product</Card.Title> 7 <Card.Description>A great product</Card.Description> 8 </Card.Header> 9</Card>;

Always fetch v3 docs before implementing. Do not assume v2 patterns work.


Core Principles

  • Semantic variants (primary, secondary, tertiary) over visual descriptions
  • Composition over configuration (compound components)
  • CSS variable-based theming with oklch color space
  • BEM naming convention for predictable styling

Accessing Documentation & Component Information

For component details, examples, props, and implementation patterns, always fetch documentation:

Using Scripts

bash
1# List all available components 2node scripts/list_components.mjs 3 4# Get component documentation (MDX) 5node scripts/get_component_docs.mjs Button 6node scripts/get_component_docs.mjs Button Card TextField 7 8# Get component source code 9node scripts/get_source.mjs Button 10 11# Get component CSS styles (BEM classes) 12node scripts/get_styles.mjs Button 13 14# Get theme variables 15node scripts/get_theme.mjs 16 17# Get non-component docs (guides, releases) 18node scripts/get_docs.mjs /docs/react/getting-started/theming

Direct MDX URLs

Component docs: https://v3.heroui.com/docs/react/components/{component-name}.mdx

Examples:

  • Button: https://v3.heroui.com/docs/react/components/button.mdx
  • Modal: https://v3.heroui.com/docs/react/components/modal.mdx
  • Form: https://v3.heroui.com/docs/react/components/form.mdx

Getting started guides: https://v3.heroui.com/docs/react/getting-started/{topic}.mdx

Important: Always fetch component docs before implementing. The MDX docs include complete examples, props, anatomy, and API references.


Installation Essentials

CRITICAL: HeroUI v3 is currently in BETA. Always use @beta tag when installing packages.

Quick Install

bash
1npm i @heroui/styles@beta @heroui/react@beta tailwind-variants
  1. Install dependencies:
bash
1npm i @heroui/styles@beta @heroui/react@beta tailwind-variants tailwindcss @tailwindcss/postcss postcss
  1. Create/update app/globals.css:
css
1/* Tailwind CSS v4 - Must be first */ 2@import "tailwindcss"; 3 4/* HeroUI v3 styles - Must be after Tailwind */ 5@import "@heroui/styles";
  1. Import in app/layout.tsx:
tsx
1import "./globals.css"; 2 3export default function RootLayout({ 4 children, 5}: { 6 children: React.ReactNode; 7}) { 8 return ( 9 <html lang="en" suppressHydrationWarning> 10 <body> 11 {/* No Provider needed in HeroUI v3! */} 12 {children} 13 </body> 14 </html> 15 ); 16}
  1. Configure PostCSS (postcss.config.mjs):
js
1export default { 2 plugins: { 3 "@tailwindcss/postcss": {}, 4 }, 5};

Critical Setup Requirements

  1. Tailwind CSS v4 is MANDATORY - HeroUI v3 will NOT work with Tailwind CSS v3
  2. No Provider Required - Unlike HeroUI v2, v3 components work directly without a Provider
  3. Use Compound Components - Components use compound structure (e.g., Card.Header, Card.Content)
  4. Use onPress, not onClick - For better accessibility, use onPress event handlers
  5. Import Order Matters - Always import Tailwind CSS before HeroUI styles

Component Patterns

HeroUI v3 uses compound component patterns. Each component has subcomponents accessed via dot notation.

Example - Card:

tsx
1<Card> 2 <Card.Header> 3 <Card.Title>Title</Card.Title> 4 <Card.Description>Description</Card.Description> 5 </Card.Header> 6 <Card.Content>{/* Content */}</Card.Content> 7 <Card.Footer>{/* Actions */}</Card.Footer> 8</Card>

Key Points:

  • Always use compound structure - don't flatten to props
  • Subcomponents are accessed via dot notation (e.g., Card.Header)
  • Each subcomponent may have its own props
  • Fetch component docs for complete anatomy and examples

Semantic Variants

HeroUI uses semantic naming to communicate functional intent:

VariantPurposeUsage
primaryMain action to move forward1 per context
secondaryAlternative actionsMultiple
tertiaryDismissive actions (cancel, skip)Sparingly
dangerDestructive actionsWhen needed
ghostLow-emphasis actionsMinimal weight
outlineSecondary actionsBordered style

Don't use raw colors - semantic variants adapt to themes and accessibility.


Theming

HeroUI v3 uses CSS variables with oklch color space:

css
1:root { 2 --accent: oklch(0.6204 0.195 253.83); 3 --accent-foreground: var(--snow); 4 --background: oklch(0.9702 0 0); 5 --foreground: var(--eclipse); 6}

Get current theme variables:

bash
1node scripts/get_theme.mjs

Color naming:

  • Without suffix = background (e.g., --accent)
  • With -foreground = text color (e.g., --accent-foreground)

Theme switching:

html
1<html class="dark" data-theme="dark"></html>

For detailed theming, fetch: https://v3.heroui.com/docs/react/getting-started/theming.mdx

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is heroui-react?

Perfect for Frontend Agents needing accessible and customizable UI components with React and Tailwind CSS. 🚀 Beautiful, fast and modern React UI library. (Previously NextUI)

How do I install heroui-react?

Run the command: npx killer-skills add heroui-inc/heroui. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for heroui-react?

Key use cases include: Building responsive and accessible UI components for React applications, Customizing UI components using Tailwind CSS v4, Integrating React Aria Components for enhanced accessibility features.

Which IDEs are compatible with heroui-react?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for heroui-react?

Requires HeroUI v3 knowledge, ignoring prior v2 knowledge. Limited to React applications. Dependent on Tailwind CSS v4 and React Aria Components.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add heroui-inc/heroui. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use heroui-react immediately in the current project.

Related Skills

Looking for an alternative to heroui-react or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI