Skip to content

Badge ​

Displays a badge or a component that looks like a badge.

Examples ​

Default ​

Badge
vue
<script setup>
import { Badge } from '@empathyds/vue'
</script>

<Badge>Badge</Badge>

Secondary ​

Secondary
vue
<script setup>
import { Badge } from '@empathyds/vue'
</script>

<Badge variant="secondary">Secondary</Badge>

Destructive ​

Destructive
vue
<script setup>
import { Badge } from '@empathyds/vue'
</script>

<Badge variant="destructive">Destructive</Badge>

Outline ​

Outline
vue
<script setup>
import { Badge } from '@empathyds/vue'
</script>

<Badge variant="outline">Outline</Badge>

Props ​

Badge ​

PropTypeDefaultDescription
variantdefault | secondary | destructive | outlinedefaultThe visual style of the badge.

Slots ​

Badge ​

SlotDescription
defaultThe content of the badge.