Skip to content

Badge

Compact label for status, category, or count.

Usage

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

<template>
  <ArchBadge variant="success">Stable</ArchBadge>
</template>

Live sandbox

Badge can be tested directly on this page.

interactive
Stable Watch
<Badge />

Props

PropTypeDefaultDescription
as"span" | "strong""span"Root HTML element.
variant"neutral" | "primary" | "success" | "warning" | "danger" | "info""neutral"Visual variant.
size"sm" | "md""md"Size.

Slots

SlotPropsDescription
default-Badge text.