vael-ui v0.3.10

Data Display

Tag

A compact label for categorizing or annotating an item inline.

Install

import { Tag } from 'vael-ui'

Playground

import { Tag } from 'vael-ui'

<Tag variant="muted" size="md" :pill="false">Tag</Tag>

Props

NameTypeDefaultDescription
variant"primary" | "danger" | "muted" | "success" | "warning" | "info""muted"
size"md" | "sm""md"
pillboolean | undefinedfalseFully pill-rounded instead of the default small label corners.
uiPartial<{ root: UiPartValue; icon: UiPartValue; label: UiPartValue; }> | undefined

Slots

NameTypeDescription
defaultany
iconanyA small leading glyph (a dot, a checkmark) — sized to match the text, not a full icon box.

Events

No events.

Exposed

NameTypeDescription
elHTMLElement | null