Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Displays a badge or a component that looks like a badge.
npx shadcn-svelte@next add badge
Copy component code
<script lang="ts"> import { Badge } from "$lib/components/ui/badge/index.js"; </script> <Badge variant="outline">Badge</Badge>
badgeVariants
<script lang="ts"> import { badgeVariants } from "$lib/components/ui/badge/index.js"; </script> <a href="/dashboard" class={badgeVariants({ variant: "outline" })}>Badge</a>