# Claude Code Development Guide ## Claude Code Integration This template is optimized for Claude Code with specific patterns and configurations. ### Claude-Specific Patterns #### Component Generation ```typescript // Claude: Generate a button component with variants import { cva, type VariantProps } from "class-variance-authority" import { forwardRef } from "react" const buttonVariants = cva( "inline-flex items-center justify-center rounded-md text-sm font-medium", { variants: { variant: { default: "bg-primary text-primary-foreground hover:bg-primary/90", destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground", secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", ghost: "hover:bg-accent hover:text-accent-foreground", link: "text-primary underline-offset-4 hover:underline", }, size: { default: "h-10 px-4 py-2", sm: "h-9 rounded-md px-3", lg: "h-11 rounded-md px-8", icon: "h-10 w-10", }, }, defaultVariants: { variant: "default", size: "default", }, } ) export interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { asChild?: boolean } const Button = forwardRef( ({ className, variant, size, asChild = false, ...props }, ref) => { return ( ) } ``` ### Available Radix UI Components (27 Total) #### Layout & Navigation - **Accordion**: Collapsible content sections - **Collapsible**: Show/hide content areas - **Navigation Menu**: Complex navigation structures - **Menubar**: Application menu bars - **Tabs**: Tabbed content organization - **Separator**: Visual content dividers #### Data Display - **Avatar**: User profile images - **Card**: Content containers - **Progress**: Progress indicators - **Scroll Area**: Custom scrollable areas - **Aspect Ratio**: Maintain aspect ratios #### Form Controls - **Button**: Interactive buttons with variants - **Checkbox**: Boolean input controls - **Input**: Text input fields - **Label**: Form field labels - **Radio Group**: Single-choice selections - **Select**: Dropdown selections - **Slider**: Range input controls - **Switch**: Toggle controls - **Textarea**: Multi-line text input - **Toggle**: Toggle buttons - **Toggle Group**: Grouped toggle buttons #### Overlays & Dialogs - **Alert Dialog**: Confirmation dialogs - **Dialog**: Modal dialogs - **Dropdown Menu**: Context menus - **Popover**: Floating content panels - **Tooltip**: Hover information #### Form System - **Form**: Complete form management - **FormField**: Field wrapper with validation - **FormItem**: Form element container - **FormLabel**: Accessible form labels - **FormControl**: Input control wrapper - **FormDescription**: Help text - **FormMessage**: Error messages