# ui-components > Complete UI component library. Contains buttons, form inputs, cards, modals, and all interactive elements. Activated when building React components, forms, or UI elements. - Author: jarmo-productory - Repository: Agrello/agrello-web - Version: 20260126095849 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/Agrello/agrello-web - Web: https://mule.run/skillshub/@@Agrello/agrello-web~ui-components:20260126095849 --- --- name: ui-components description: Complete UI component library. Contains buttons, form inputs, cards, modals, and all interactive elements. Activated when building React components, forms, or UI elements. allowed-tools: Read, Write, Glob, Grep --- # UI Component Library Complete component patterns for building applications with React and Tailwind CSS. **Live Reference:** See `/styleguide` for interactive examples and full documentation. ## Using the Component Library Import components using the `@/` path alias: ```tsx import { Button, Badge, Card, Input, Icon, SectionHeader } from '@/components/ui' ``` ### Available Components | Component | Description | Key Props | | --------------- | ---------------------------- | ------------------------------------------------- | | `Button` | All button variants | `variant`, `size`, `onDark` | | `Badge` | Labels and status indicators | `variant`, `showDot`, `onDark` | | `Card` | Content containers | `variant`, `padding`, `hoverable` | | `Input` | Form inputs with labels | `type`, `label`, `error`, `helperText` | | `Icon` | Lucide icons integration | `name`, `size` | | `SectionHeader` | Section titles with overline | `overline`, `headline`, `body`, `align`, `onDark` | | `FadeInView` | Scroll-triggered animations | `direction`, `delay` | --- ## Raw Tailwind Patterns (Reference) Below are raw Tailwind patterns for cases where you need custom implementations. ## Buttons ### Primary Button ```tsx ``` ### Secondary Button ```tsx ``` ### Ghost Button ```tsx ``` ### Accent Button (CTA) ```tsx ``` ### Button Sizes ```tsx // Small // Medium (default) // Large ``` ## Form Inputs ### Text Input ```tsx ``` ### Input with Label ```tsx
``` ### Input States ```tsx // Error State

This field is required

// Success State // Disabled State ``` ## Cards ### Basic Card ```tsx

Card Title

Card content goes here.

``` ### Interactive Card ```tsx

Interactive Card

Hover to see the effect.

``` ### Feature Card with Icon ```tsx

Feature Title

Feature description text.

``` ## Badges & Tags ```tsx // Default Default // Primary Primary // Success Success // Accent New ``` ## Loading States ### Spinner ```tsx ``` ### Skeleton ```tsx
``` ## Usage Guidelines ### Do: - Use Primary button for main actions - Use Accent button for CTAs that need attention - Maintain consistent spacing (use spacing scale) - Include focus states for accessibility - Use loading states for async operations ### Don't: - Mix button styles arbitrarily - Use more than one Accent button per section - Skip error/validation states on forms - Use custom colors outside the palette - Remove focus indicators