heroui-components

Integrate and customize HeroUI components in web applications using TypeScript examples.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill heroui-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: heroui-components
Source: https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/heroui-components
Command: npx skills add https://github.com/sgcarstrends/sgcarstrends --skill heroui-components

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you work with HeroUI components in the web app, enabling rapid creation and styling of accessible UI pieces.

Core Features & Use Cases

  • Component Usage: Import and use HeroUI components like Button, Input, Card from @heroui/react.
  • Variant & State Styling: Implement colors, sizes, and states consistently.
  • Examples & Guidance: Access usage examples for common UI patterns (forms, dialogs, cards).

Quick Start

Import and use a HeroUI Button from @heroui/react in a page component, e.g., <Button color="primary">Submit</Button>.

Frequently Asked Questions about heroui-components

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add HeroUI components to my React pages?

Import components from @heroui/react and use them directly in your JSX. For example, add <Button color="primary">Submit</Button> to your page component. HeroUI components are ready to use with Tailwind styling and accessibility built in.

Can I customize HeroUI component colors and sizes?

Yes, HeroUI components support variant styling through props like color, size, and state. Customize appearance by passing props to components—e.g., <Input size="lg" /> or <Button variant="flat" />—without modifying Tailwind directly.

How do I build forms and modals with HeroUI?

Use HeroUI's Input, Button, Modal, and Card components to construct forms and dialogs. Combine these components in React, apply variant props for styling, and handle state to manage form submission and modal visibility.

Does HeroUI work with TypeScript?

Yes, HeroUI components are fully typed for TypeScript. Import components from @heroui/react and use them with type safety. TypeScript examples and component type definitions are available through the MCP helper tools.

What HeroUI components are available for common UI patterns?

HeroUI provides Button, Input, Card, Modal, Table, and navigation components for standard patterns. Use the mcp__heroui-react__list_components and mcp__heroui-react__get_component_examples tools to discover all available components and their usage examples.

Why is my HeroUI component styling inconsistent across pages?

Styling inconsistency often results from missing Tailwind configuration or inconsistent variant props. Ensure Tailwind is configured in your project, use HeroUI's color and size props consistently, and debug with the component examples to verify expected output.