# HeroUI v3 (React)

> Docs for @heroui/react 3.2.8. These files ship inside the package, so they match the version installed in this project. Paths are relative to this file. Read the page for a component before you use it; do not rely on HeroUI v2 knowledge.

## Rules that always apply

- v3 has no provider. Do not add `HeroUIProvider`, `framer-motion`, or `@heroui/theme`.
- Components are compound: `<Card><Card.Header>…</Card.Header></Card>`, not flat props.
- Styles come from `@heroui/styles`. In the app's CSS, `@import "tailwindcss";` goes first, then `@import "@heroui/styles";`.
- Labels, descriptions, and errors are shared parts: `Label`, `Description`, `FieldError`.
- Style with Tailwind classes on `className`, or globally through the component's BEM classes and CSS variables. Never patch `node_modules`.

## Where to go

- Set up HeroUI in a project: [quick-start](guides/quick-start.md), [frameworks](guides/frameworks.md), [cli](guides/cli.md)
- Build a screen: [composition](guides/composition.md), [styling](guides/styling.md)
- Change colors, radius, fonts, or build a whole theme: [theming-for-agents](guides/theming-for-agents.md), [theming](guides/theming.md), [colors](guides/colors.md), [dark-mode](guides/dark-mode.md)
- Restyle one component everywhere: [theming-for-agents](guides/theming-for-agents.md), [styling](guides/styling.md)
- Add motion: [animation](guides/animation.md)
- Give a coding agent more HeroUI context: [agent-skills](guides/agent-skills.md), [mcp-server](guides/mcp-server.md), [agents-md](guides/agents-md.md), [design-md](guides/design-md.md), [llms-txt](guides/llms-txt.md)
- Use one component: open its page under Components below.

## Components

### Buttons

- [Button](components/button.md): A clickable button component with multiple variants and states
- [ButtonGroup](components/button-group.md): Group related buttons together with consistent styling and spacing
- [CloseButton](components/close-button.md): Button component for closing dialogs, modals, or dismissing content
- [ToggleButton](components/toggle-button.md): An interactive toggle control for on/off or selected/unselected states
- [ToggleButtonGroup](components/toggle-button-group.md): Groups multiple ToggleButtons into a unified control, allowing users to select one or multiple options.

### Collections

- [Dropdown](components/dropdown.md): A dropdown displays a list of actions or options that a user can choose
- [ListBox](components/list-box.md): A listbox displays a list of options and allows a user to select one or more of them
- [TagGroup](components/tag-group.md): A focusable list of tags with support for keyboard navigation, selection, and removal

### Colors

- [ColorArea](components/color-area.md): A 2D color picker that allows users to select colors from a gradient area
- [ColorField](components/color-field.md): Color input field with labels, descriptions, and validation built on React Aria ColorField
- [ColorPicker](components/color-picker.md): A composable color picker that synchronizes color value between multiple color components
- [ColorSlider](components/color-slider.md): A color slider allows users to adjust an individual channel of a color value
- [ColorSwatch](components/color-swatch.md): A visual preview of a color value with accessibility support
- [ColorSwatchPicker](components/color-swatch-picker.md): A list of color swatches that allows users to select a color from a predefined palette.

### Controls

- [Slider](components/slider.md): A slider allows a user to select one or more values within a range
- [Switch](components/switch.md): A toggle switch component for boolean states

### Data Display

- [Badge](components/badge.md): Displays a small indicator positioned relative to another element, commonly used for notification counts, status dots, and labels
- [Chip](components/chip.md): Small informational badges for displaying labels, statuses, and categories
- [Table](components/table.md): Tables display structured data in rows and columns with support for sorting, selection, column resizing, and infinite scrolling.

### Date And Time

- [Calendar](components/calendar.md): Composable date picker with month grid, navigation, and year picker support built on React Aria Calendar
- [DateField](components/date-field.md): Date input field with labels, descriptions, and validation built on React Aria DateField
- [DatePicker](components/date-picker.md): Composable date picker built on React Aria DatePicker with DateField and Calendar composition
- [DateRangePicker](components/date-range-picker.md): Composable date range picker built on React Aria DateRangePicker with DateField and RangeCalendar composition
- [RangeCalendar](components/range-calendar.md): Composable date range picker with month grid, navigation, and year picker support built on React Aria RangeCalendar
- [TimeField](components/time-field.md): Time input field with labels, descriptions, and validation built on React Aria TimeField

### Feedback

- [Alert](components/alert.md): Display important messages and notifications to users with status indicators
- [Meter](components/meter.md): A meter represents a quantity within a known range, or a fractional value.
- [ProgressBar](components/progress-bar.md): A progress bar shows either determinate or indeterminate progress of an operation over time.
- [ProgressCircle](components/progress-circle.md): A circular progress indicator that shows determinate or indeterminate progress.
- [Skeleton](components/skeleton.md): Skeleton is a placeholder to show a loading state and the expected shape of a component.
- [Spinner](components/spinner.md): A loading indicator component to show pending states

### Forms

- [Checkbox](components/checkbox.md): Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.
- [CheckboxGroup](components/checkbox-group.md): A checkbox group component for managing multiple checkbox selections
- [Description](components/description.md): Provides supplementary text for form fields and other components
- [ErrorMessage](components/error-message.md): A low-level error message component for displaying errors
- [FieldError](components/field-error.md): Displays validation error messages for form fields
- [Fieldset](components/fieldset.md): Group related form controls with legends, descriptions, and actions
- [Form](components/form.md): Wrapper component for form validation and submission handling
- [Input](components/input.md): Primitive single-line text input component that accepts standard HTML attributes
- [InputGroup](components/input-group.md): Group related input controls with prefix and suffix elements for enhanced form fields
- [InputOTP](components/input-otp.md): A one-time password input component for verification codes and secure authentication
- [Label](components/label.md): Renders an accessible label associated with form controls
- [NumberField](components/number-field.md): Number input fields with increment/decrement buttons, validation, and internationalized formatting
- [RadioGroup](components/radio-group.md): Radio group for selecting a single option from a list
- [SearchField](components/search-field.md): Search input field with clear button and search icon
- [TextArea](components/text-area.md): Primitive multiline text input component that accepts standard HTML attributes
- [TextField](components/text-field.md): Composition-friendly text fields with labels, descriptions, and inline validation

### Layout

- [Card](components/card.md): Flexible container component for grouping related content and actions
- [Separator](components/separator.md): Visually divide content sections
- [Surface](components/surface.md): Container component that provides surface-level styling and context for child components
- [Toolbar](components/toolbar.md): A container for interactive controls with arrow key navigation.

### Media

- [Avatar](components/avatar.md): Display user profile images with customizable fallback content
- [AvatarGroup](components/avatar-group.md): Display a stacked or grid group of avatars with overflow counting

### Navigation

- [Accordion](components/accordion.md): A collapsible content panel for organizing information in a compact space
- [Breadcrumbs](components/breadcrumbs.md): Navigation breadcrumbs showing the current page's location within a hierarchy
- [Disclosure](components/disclosure.md): A disclosure is a collapsible section with a header containing a heading and a trigger button, and a panel that wraps the content.
- [DisclosureGroup](components/disclosure-group.md): Container that manages multiple Disclosure items with coordinated expanded states
- [Link](components/link.md): A styled anchor component for navigation with built-in icon support
- [Pagination](components/pagination.md): Page navigation with composable page links, previous/next buttons, and ellipsis indicators
- [Tabs](components/tabs.md): Tabs organize content into multiple sections and allow users to navigate between them.

### Overlays

- [AlertDialog](components/alert-dialog.md): Modal dialog for critical confirmations requiring user attention and explicit action
- [Drawer](components/drawer.md): Slide-out panel for supplementary content and actions
- [Modal](components/modal.md): Dialog overlay for focused user interactions and important content
- [Popover](components/popover.md): Displays rich content in a portal triggered by a button or any custom element
- [Sheet](components/sheet.md): Swipeable overlay with native scroll snapping, partial positions, and nested sheets
- [Toast](components/toast.md): Display temporary notifications and messages to users with automatic dismissal and customizable placement
- [Tooltip](components/tooltip.md): Displays informative text when users hover over or focus on an element

### Pickers

- [Autocomplete](components/autocomplete.md): An autocomplete combines a select with filtering, allowing users to search and select from a list of options
- [ComboBox](components/combo-box.md): A combo box combines a text input with a listbox, allowing users to filter a list of options to items matching a query
- [Select](components/select.md): A select displays a collapsible list of options and allows a user to select one of them

### Typography

- [Kbd](components/kbd.md): Display keyboard shortcuts and key combinations
- [Typography](components/typography.md): A semantic typography primitive for headings, body copy, and inline code built on React Aria Components Text.

### Utilities

- [ScrollShadow](components/scroll-shadow.md): Apply visual shadows to indicate scrollable content overflow with automatic detection of scroll position.

## Guides

### Handbook

- [Animation](guides/animation.md): Add smooth animations and transitions to HeroUI v3 components
- [Colors](guides/colors.md): Color palette and theming system for HeroUI v3
- [Composition](guides/composition.md): Build flexible UI with component composition patterns
- [Dark Mode](guides/dark-mode.md): Add light, dark, and system theme switching to HeroUI v3
- [Styling](guides/styling.md): Style HeroUI components with CSS, Tailwind, or CSS-in-JS
- [Theming](guides/theming.md): Customize HeroUI's design system with CSS variables and global styles

### Overview

- [CLI](guides/cli.md): Use the CLI to manage HeroUI dependencies and initialize projects.
- [Design Principles](guides/design-principles.md): Core principles that guide HeroUI v3's design and development
- [Frameworks](guides/frameworks.md): Integrate HeroUI with your framework
- [Quick Start](guides/quick-start.md): Get started with HeroUI v3 in minutes

### Ui For Agents

- [Agent Skills](guides/agent-skills.md): Enable AI assistants to build UIs with HeroUI v3 components
- [AGENTS.md](guides/agents-md.md): Download HeroUI v3 React documentation for AI coding agents
- [DESIGN.md](guides/design-md.md): Give coding agents HeroUI's default visual language and theme guidance
- [LLMs.txt](guides/llms-txt.md): Enable AI assistants like Claude, Cursor, and Windsurf to understand HeroUI v3
- [MCP Server](guides/mcp-server.md): Access HeroUI v3 documentation directly in your AI assistant
- [Theming with Agents](guides/theming-for-agents.md): Let coding agents customize HeroUI globally and author complete themes with CSS

## Not in this folder

- Migration from v2: https://heroui.com/docs/react/migration
- Release notes: https://heroui.com/docs/react/releases
- Theme gallery and builder: https://heroui.com/themes
