Back to Shark UI

Status

docs/components/status

latest6.1 KB
Original Source

Sections

Components

Utilities

Forms

Hooks

Status

Copy Markdown

Color-coded status for process or state.

PreviewCode

Installation#

CLIManual

pnpmbunnpmyarn

pnpm dlx shadcn@latest add @shark/status

Usage#

import { Status } from "@/components/ui/status";
<Status variant="success" />

Variants#

Default#

PreviewCode

Info#

PreviewCode

Success#

PreviewCode

Warning#

PreviewCode

Destructive#

PreviewCode

Sizes#

Small#

PreviewCode

Medium#

PreviewCode

Large#

PreviewCode

With Badge#

PreviewCode

OnlineIn progressPendingOffline

With Icon#

Place an icon inside the Status.

PreviewCode

Custom Size#

Use size-* on Status to customize the size.

PreviewCode

Custom Color#

Use bg-* and text-* utility classes to customize the color.

PreviewCode

API Reference#

Status#

Status badge or indicator.

PropTypeDefault
variant`"success""info"
size`"sm""md"
classNamestring-
asChildbooleanfalse

[

Previous page

Spinner ](/docs/components/spinner)[

Next page

Steps ](/docs/components/steps)

On This Page

InstallationUsageVariantsDefaultInfoSuccessWarningDestructiveSizesSmallMediumLargeWith BadgeWith IconCustom SizeCustom ColorAPI ReferenceStatus