Skip to content

@agala-labs/ui

Tag

Represents a user-applied label that may be explicitly interactive or removable.

Examples

Default
System state Active
User labelVue
Tag activations: 0
<AgalaTag label="Needs review" interactive @click="filterByTag" />

Import

import { AgalaTag } from '@agala-labs/ui'

API

PropTypeDefaultDescription
labelstringVisible tag text.
variant'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'outline''default'Treatment.
size'sm' | 'md''md'Tag size.
removablebooleanfalseShows a labeled native remove button.
interactivebooleanfalseRenders the root as a native button and enables the click event. Ignored when removable.
disabledbooleanfalseDisables available interaction.
colorstringAny valid CSS color.
classstringConsumer override class.

Events

  • click — emitted only when interactive
  • remove

Accessibility

Choose Badge for system state/count and Tag for user-applied labels or filters. Passive tags are not focusable; removable tags expose only their labeled remove button; interactive tags use native button semantics.

Released under the MIT License.