Components
- Accordion
- Action BarUpdated
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- BadgeUpdated
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- CalendarUpdated
- CardUpdated
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context MenuUpdated
- Data List
- Date Picker
- DialogUpdated
- DrawerUpdated
- Editable
- FieldUpdated
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- MarqueeUpdated
- Menu
- Native Select
- Number InputUpdated
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- TableUpdated
- Tabs
- Textarea
- TimerUpdated
- ToastUpdated
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Hooks
Status
Color-coded status for process or state.
Installation#
pnpm dlx shadcn@latest add @shark/status
Usage#
import { Status } from "@/components/ui/status";
<Status variant="success" />
Variants#
Default#
Info#
Success#
Warning#
Destructive#
Sizes#
Small#
Medium#
Large#
With Badge#
OnlineIn progressPendingOffline
With Icon#
Place an icon inside the Status.
Custom Size#
Use size-* on Status to customize the size.
Custom Color#
Use bg-* and text-* utility classes to customize the color.
API Reference#
Status#
Status badge or indicator.
| Prop | Type | Default |
|---|---|---|
variant | "success" | "info" | "warning" | "destructive" | "success" |
size | "sm" | "md" | "lg" | "md" |
className | string | - |
asChild | boolean | false |