Skip to content

Badge Group

Limits visible badges and shows an overflow count.

Usage

vue
<script setup>
import { ArchBadge, ArchBadgeGroup } from "@archora/ui";

const tags = ["Vue", "A11y", "Tokens", "Forms"];
</script>

<template>
  <ArchBadgeGroup :items="tags" :limit="3" v-slot="{ item }">
    <ArchBadge>{{ item }}</ArchBadge>
  </ArchBadgeGroup>
</template>

Live sandbox

Badge Group can be tested directly on this page.

interactive
VueA11yTokens+1
<BadgeGroup />

Props

PropTypeDefaultDescription
itemsreadonly T[]-Item collection.
limitnumber2Number of visible items.
gap"xs" | "sm""sm"Spacing between items.
keyFn(item: T, index: number) => string | number-v-for key function.

Slots

SlotPropsDescription
defaultRenders one visible item.