Badge

A short status next to the thing it describes.

Example

DefaultSecondaryOutlinePaidPendingFailed
tsx
<Stack direction="row" gap="sm" wrap>
  <Badge>Default</Badge>
  <Badge variant="secondary">Secondary</Badge>
  <Badge variant="outline">Outline</Badge>
  <Badge variant="success">Paid</Badge>
  <Badge variant="warning">Pending</Badge>
  <Badge variant="destructive">Failed</Badge>
</Stack>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Badge, Stack } from "@dash/server";

Props

BadgeProps

Prop
Type
Description
variant"default" | "secondary" | "outline" | "destructive" | "success" | "warning" | "pending" | "info"
PreviousBlockquote
NextTag
On this page