Misc
Badge
A count or a status dot, on its own or pinned to the corner of what it wraps with OverlayBadge.
WAI-ARIA tested
Import
main.ts
import { Badge } from '@vitral/vue';Severities
12345678
Sizes and dot
Without a value the badge is a dot.
888899+
OverlayBadge
Bind the slot’s `badgeId` as aria-describedby: “Notifications, 4”.
API
Read from packages/vue/src/components/Badge/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| value | string | number | null | Without a value (or slot content) the badge is a dot. |
| severity | Severity | Defaults to `'primary'`. |
| size | BadgeSize | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | — |