Badge

A small pill for labels, counts, and statuses.

Default New Link
<script lang="ts">
  import { Badge } from "$lib/components/ui/badge";
</script>
 
<div class="flex flex-wrap items-center gap-3">
  <Badge>Default</Badge>
  <Badge>New</Badge>
  <Badge href="https://github.com/levish0/lily-svelte">Link</Badge>
</div>

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.