//
Displays a badge or a component that looks like a badge.
bun add xiod-ui1import { Badge } from "xiod-ui/badge";1<Badge>2</Badge>| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default"| "secondary"| "success"| "warning"| "destructive"| "info"| "outline"| "error"| null| undefined | default | |
size | "default"| "sm"| "lg"| null| undefined | default | |
render | ReactElement<unknown, string| JSXElementConstructor<any>>| ComponentRenderFn<HTMLProps, {}>| undefined | - | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render. |