Skip to content

pantoken / renderers/web-components/src / badge

變數: badge

const badge: ElementDefinition

Alpha(內測)

<instui-badge> — a small count/status badge. The variant attribute maps to the -color-<variant> modifier; slotted content is the count or label.

範例

html
<instui-badge variant="danger">9</instui-badge>