Badge

A small pill for labels, counts, and statuses.

Default New Link

Installation

npx lily-svelte@latest add badge

Usage

<script lang="ts">
	import { Badge } from '$lib/components/ui/badge';
</script>
 
<Badge>New</Badge>

Pass an href to render the badge as an anchor with a subtle hover treatment.

<Badge href="/changelog">v1.0</Badge>

Built by levish. The source code is available on GitHub.

Quiet by design.