KS
Killer-Skills

heroui-react — how to use heroui-react how to use heroui-react, heroui-react vs NextUI, heroui-react install, what is heroui-react, heroui-react setup guide, heroui-react alternative, heroui-react react aria components, heroui-react tailwind css v4, heroui-react customization, heroui-react accessibility

v2.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing accessible and customizable UI components for React applications. heroui-react is a React UI library built on Tailwind CSS v4 and React Aria Components, providing accessible and customizable UI components for React applications.

Features

Built on Tailwind CSS v4 for customizable styling
Utilizes React Aria Components for accessible UI components
Provides a modern and fast React UI library
Supports customizable UI components for React applications
Compatible with the latest React versions
Follows critical rules for v3, ignoring prior v2 knowledge

# Core Topics

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

Quality Score

Top 5%
41
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add heroui-inc/heroui/heroui-react

Agent Capability Analysis

The heroui-react MCP Server by heroui-inc is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use heroui-react, heroui-react vs NextUI, heroui-react install.

Ideal Agent Persona

Perfect for Frontend Agents needing accessible and customizable UI components for React applications.

Core Value

Empowers agents to build modern and fast React applications using Tailwind CSS v4 and React Aria Components, providing accessible and customizable UI components with seamless integration.

Capabilities Granted for heroui-react MCP Server

Building responsive and accessible hero sections
Creating customizable UI components for React applications
Integrating with Tailwind CSS v4 for styling

! Prerequisites & Limits

  • Requires React and Tailwind CSS v4 setup
  • Only compatible with HeroUI v3
  • Prior knowledge of HeroUI v2 is not applicable
Project
SKILL.md
6.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
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

Framework Setup (Next.js App Router - Recommended)

  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

Related Skills

Looking for an alternative to heroui-react or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

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
Communication

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
Communication