Badge
Pick one of nine variants. Set href to render an anchor instead of a div, dot to add a small marker before the text, or icon to add a leading icon.
Draft
Installation
Copy the command below and run it in your terminal.
Usage
variant defaults to secondary. icon takes a component such as a Lucide icon, sized by iconSize (13 by default).
Examples
With dot
Server status
Online
Database
Syncing
API
Offline
With icon
Backup complete
Done
Scheduled maintenance
Scheduled
Critical issue
Alert
As link
Anatomy
Badge - Renders a short label, or a link when given href.
<script lang="ts"> import { Badge } from '@sivir-ui/svelte/components/badge'; </script> <Badge>Draft</Badge>