--- name: heroui-recommender description: Recommend appropriate HeroUI components for new features and ensure proper usage. Use when implementing new UI features or migrating from shadcn/ui to HeroUI. --- # HeroUI Component Recommender Skill This Skill helps developers select and implement the right HeroUI components for features, ensuring consistent UI/UX across the application. ## When to Activate - Starting implementation of new UI features - Migrating components from shadcn/ui to HeroUI - Uncertain which HeroUI component fits requirements - Need usage examples with TypeScript types - Want to verify proper HeroUI patterns ## Available HeroUI Components The project uses these HeroUI components (from package.json): ### Interactive Components - **Button** (`@heroui/button`) - Actions, CTAs, form submissions - **Tabs** (`@heroui/tabs`) - Section navigation, category switching - **Pagination** (`@heroui/pagination`) - List navigation, data tables - **Input** (`@heroui/input`) - Form fields, search boxes - **Popover** (`@heroui/popover`) - Contextual information, tooltips - **Tooltip** (`@heroui/tooltip`) - Hover hints, icon explanations ### Display Components - **Card** (`@heroui/card`) - Content containers, dashboard widgets - **Table** (`@heroui/table`) - Data grids, listings - **Chip** (`@heroui/chip`) - Tags, badges, status indicators - **Alert** (`@heroui/alert`) - Notifications, warnings, info messages - **Toast** (`@heroui/toast`) - Temporary notifications, success messages ### Layout Components - **Spacer** (`@heroui/spacer`) - Flexible spacing between elements - **Spinner** (`@heroui/spinner`) - Loading states, async operations ### Complete Suite - **@heroui/react** - Full HeroUI component library ## Actions Performed 1. **Analyze Requirements**: Understand the feature/UI needs 2. **Recommend Components**: Suggest appropriate HeroUI components 3. **Provide Examples**: Show TypeScript usage with proper types 4. **Fetch Latest Docs**: Use Context7 MCP to get up-to-date HeroUI documentation 5. **Check Patterns**: Ensure semantic colors and accessibility best practices 6. **Migration Guide**: If replacing shadcn/ui, provide migration steps ## Example Recommendations ### Feature: Data Table with Pagination **Recommended Components**: - `Table` from `@heroui/table` - Main data display - `Pagination` from `@heroui/pagination` - Navigation controls - `Chip` from `@heroui/chip` - Status badges - `Spinner` from `@heroui/spinner` - Loading state **Usage Example**: ```typescript import { Table, TableHeader, TableColumn, TableBody, TableRow, TableCell } from "@heroui/table"; import { Pagination } from "@heroui/pagination"; import { Chip } from "@heroui/chip"; export function DataTable() { return (