Unlock faster development with Fidely UI Pro components Coming soon

Badge

Used to highlight item status for quick recognition.

DefaultSuccessRemovedNew

Usage

import { Badge } from '@fidely-ui/react'
<Badge>Badge Text</Badge>

Examples

Icon

Render an icon within the badge directly

NewNew

Sizes

Badges come in different sizes

NewNewNewNew

Variants

Badges come in different variants

NewNewNew

asChild

Use the asChild prop to render or use the child elements component.

Badge

Props

Badge

PropTypeDefaultDescription
size"sm" | "md" | "lg" | "xl""md"Defines the size of the badge.
colorPalette-"gray"Sets the color palette for the badge.
variant"solid" | "subtle" | "outline""solid"Defines the visual style of the badge.
asReact.ElementType"-"The underlying element to render.
asChildbooleanfalsePasses props to use a custom inline element.

On this page