Component Showcase
Explore all 25 shadcn/ui components with interactive examples
Quick Navigation
Avatar
Display user profile images with fallback initials
<Avatar>
<AvatarImage src="..." />
<AvatarFallback>JD</AvatarFallback>
</Avatar>Badge
Small status indicators and labels
<Badge>Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="outline">Outline</Badge>
<Badge variant="destructive">Destructive</Badge>Button
Clickable button elements with multiple variants and sizes
<Button>Default</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="outline">Outline</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>Card
Container for grouping related content
Notifications
You have 3 unread messages.
Your AI assistant completed 12 tasks today.
Pro Plan
Unlimited AI generations
$29/mo
<Card>
<CardHeader>
<CardTitle>Card Title</CardTitle>
<CardDescription>Card description text</CardDescription>
</CardHeader>
<CardContent>Content goes here</CardContent>
<CardFooter>Footer actions</CardFooter>
</Card>Checkbox
Toggle selection state for items
<div className="flex items-center space-x-2">
<Checkbox id="terms" />
<Label htmlFor="terms">Accept terms</Label>
</div>Collapsible
Expandable/collapsible content sections
AI Model Settings
<Collapsible>
<CollapsibleTrigger>Toggle</CollapsibleTrigger>
<CollapsibleContent>Content</CollapsibleContent>
</Collapsible>Command
Command palette for search and actions
<Command>
<CommandInput placeholder="Search..." />
<CommandList>
<CommandGroup heading="Suggestions">
<CommandItem>Item 1</CommandItem>
</CommandGroup>
</CommandList>
</Command>Dialog
Modal dialogs for confirmations and forms
<Dialog>
<DialogTrigger asChild>
<Button>Open</Button>
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Title</DialogTitle>
<DialogDescription>Description</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>Input
Text input fields with various states
<Input placeholder="Type here..." />
<Input type="email" placeholder="Email" />
<Input disabled placeholder="Disabled" />Label
Accessible labels for form elements
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" />Popover
Floating content panels
<Popover>
<PopoverTrigger asChild>
<Button>Open</Button>
</PopoverTrigger>
<PopoverContent>Content</PopoverContent>
</Popover>Progress
Progress indicators and loading bars
<Progress value={45} />Radio Group
Single selection from multiple options
Selected: option-1
<RadioGroup defaultValue="option-1">
<div className="flex items-center space-x-2">
<RadioGroupItem value="option-1" id="r1" />
<Label htmlFor="r1">Option 1</Label>
</div>
</RadioGroup>Scroll Area
Scrollable container with custom scrollbar
<ScrollArea className="h-72">
{/* Long content */}
</ScrollArea>Select
Dropdown selection component
<Select>
<SelectTrigger>
<SelectValue placeholder="Select..." />
</SelectTrigger>
<SelectContent>
<SelectItem value="1">Option 1</SelectItem>
</SelectContent>
</Select>Separator
Visual divider between content
AI Settings
Configure your AI preferences.
Notifications
Manage alert preferences.
<Separator />
<Separator orientation="vertical" />Sheet
Slide-out panel from screen edges
<Sheet>
<SheetTrigger asChild>
<Button>Open</Button>
</SheetTrigger>
<SheetContent>Content</SheetContent>
</Sheet>Skeleton
Loading placeholder animations
<Skeleton className="h-4 w-[250px]" />
<Skeleton className="h-12 w-12 rounded-full" />Slider
Range input for numeric values
<Slider defaultValue={[50]} max={100} step={1} />Switch
Toggle switch for on/off states
AI Suggestions: Disabled
<div className="flex items-center space-x-2">
<Switch id="airplane" />
<Label htmlFor="airplane">Toggle</Label>
</div>Table
Data tables with rows and columns
| Status | Tokens | Actions | ||
|---|---|---|---|---|
| Marketing Copy | completed | 1,234 | ||
| Blog Post Draft | in-progress | 2,456 | ||
| Email Template | pending | 0 |
<Table>
<TableHeader>
<TableRow>
<TableHead>Name</TableHead>
</TableRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>John</TableCell>
</TableRow>
</TableBody>
</Table>Tabs
Tabbed navigation for content sections
AI Chat
Start a conversation with your AI assistant.
<Tabs defaultValue="tab1">
<TabsList>
<TabsTrigger value="tab1">Tab 1</TabsTrigger>
<TabsTrigger value="tab2">Tab 2</TabsTrigger>
</TabsList>
<TabsContent value="tab1">Content 1</TabsContent>
<TabsContent value="tab2">Content 2</TabsContent>
</Tabs>Textarea
Multi-line text input
<Textarea placeholder="Type your message..." />Tooltip
Informative hover tooltips
<Tooltip>
<TooltipTrigger asChild>
<Button>Hover</Button>
</TooltipTrigger>
<TooltipContent>Tooltip text</TooltipContent>
</Tooltip>Built with shadcn/ui • 25 components showcased