Skip to content

Badge Wrapper Component

A wrapper component to position a badge relative to an anchor.

Properties

NameTypeDefaultDescription
anchor-shape"rectangle" | "circle" | "pill""rectangle"The shape of the anchor.
badge-side"left" | "right""right"The horizontal placement of the badge.
badge-alignment"top" | "middle""top"The vertical alignment of the badge.

Slots

NameDescription
defaultThe default slot for the anchor element.
badgeThe slot for the badge to be positioned.