Component Showcase

Explore all 25 shadcn/ui components with interactive examples

Quick Navigation

Avatar

Display user profile images with fallback initials

Data Display
CNCNJDAI
<Avatar>
  <AvatarImage src="..." />
  <AvatarFallback>JD</AvatarFallback>
</Avatar>

Badge

Small status indicators and labels

Data Display
Default
Secondary
Outline
Destructive
Success
Warning
<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

Inputs
<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

Layout

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

Inputs
<div className="flex items-center space-x-2">
  <Checkbox id="terms" />
  <Label htmlFor="terms">Accept terms</Label>
</div>

Collapsible

Expandable/collapsible content sections

Data Display

AI Model Settings

<Collapsible>
  <CollapsibleTrigger>Toggle</CollapsibleTrigger>
  <CollapsibleContent>Content</CollapsibleContent>
</Collapsible>

Command

Command palette for search and actions

Inputs
<Command>
  <CommandInput placeholder="Search..." />
  <CommandList>
    <CommandGroup heading="Suggestions">
      <CommandItem>Item 1</CommandItem>
    </CommandGroup>
  </CommandList>
</Command>

Dialog

Modal dialogs for confirmations and forms

Overlay
<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

Inputs
<Input placeholder="Type here..." />
<Input type="email" placeholder="Email" />
<Input disabled placeholder="Disabled" />

Label

Accessible labels for form elements

Inputs
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" />

Popover

Floating content panels

Overlay
<Popover>
  <PopoverTrigger asChild>
    <Button>Open</Button>
  </PopoverTrigger>
  <PopoverContent>Content</PopoverContent>
</Popover>

Progress

Progress indicators and loading bars

Feedback
Token Usage45%
Generation Progress75%
Storage Used90%
<Progress value={45} />

Radio Group

Single selection from multiple options

Inputs

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

Layout
U1

User 1

user1@example.com

U2

User 2

user2@example.com

U3

User 3

user3@example.com

U4

User 4

user4@example.com

U5

User 5

user5@example.com

U6

User 6

user6@example.com

U7

User 7

user7@example.com

U8

User 8

user8@example.com

U9

User 9

user9@example.com

U10

User 10

user10@example.com

U11

User 11

user11@example.com

U12

User 12

user12@example.com

U13

User 13

user13@example.com

U14

User 14

user14@example.com

U15

User 15

user15@example.com

<ScrollArea className="h-72">
  {/* Long content */}
</ScrollArea>

Select

Dropdown selection component

Inputs
<Select>
  <SelectTrigger>
    <SelectValue placeholder="Select..." />
  </SelectTrigger>
  <SelectContent>
    <SelectItem value="1">Option 1</SelectItem>
  </SelectContent>
</Select>

Separator

Visual divider between content

Layout

AI Settings

Configure your AI preferences.

Notifications

Manage alert preferences.

Chat
Images
Writer
Prompts
<Separator />
<Separator orientation="vertical" />

Sheet

Slide-out panel from screen edges

Overlay
<Sheet>
  <SheetTrigger asChild>
    <Button>Open</Button>
  </SheetTrigger>
  <SheetContent>Content</SheetContent>
</Sheet>

Skeleton

Loading placeholder animations

Feedback
<Skeleton className="h-4 w-[250px]" />
<Skeleton className="h-12 w-12 rounded-full" />

Slider

Range input for numeric values

Inputs
0.5
<Slider defaultValue={[50]} max={100} step={1} />

Switch

Toggle switch for on/off states

Inputs

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

Data Display
StatusTokensActions
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

Navigation

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

Inputs
<Textarea placeholder="Type your message..." />

Tooltip

Informative hover tooltips

Overlay
<Tooltip>
  <TooltipTrigger asChild>
    <Button>Hover</Button>
  </TooltipTrigger>
  <TooltipContent>Tooltip text</TooltipContent>
</Tooltip>

Built with shadcn/ui 25 components showcased