For vue2 projects, use @94ai/common-ui
LLMs.md

Tag ​

A native status tag with six variants, an optional status dot, text fallback and click events. Switch Chalk/OEM component themes from the header.

Status variants ​

Loading example…
Status variants

Status dot ​

Loading example…
Status dot

Text and slots ​

Loading example…
Text and slots

Click events ​

Loading example…
Click events

type defaults to undefined: no variant class is added when omitted. value defaults to an empty string and renders as plain text; the default slot takes precedence. circle defaults to true and is decorative.

disabled

type="disabled" is a gray visual variant, not a disabled control: it still emits click. click receives the original MouseEvent and keeps native bubbling/default behavior. The legacy documentation omitted this payload; the implementation is the compatibility baseline.

Interactive example ​

Status
click: 0; bubble: 0; last:

On-demand import ​

ts
import NfTag from '@94ai-plus/nf-tag'
import '@94ai-plus/nf-theme-chalk/nf-tag.css'

app.use(NfTag)

Types ​

ts
import type { TagProps, TagType } from '@94ai-plus/nf-tag'
// TagType: 'disabled' | 'success' | 'info' | 'warning' | 'danger' | 'tip'

Props ​

AttributeDescriptionTypeAccepted valuesDefault
typeType; disabled changes appearance only, not click behaviorstringdisabled / success / info / warning / danger / tipundefined
circleWhether to show the dotboolean—true
valueText displayed when the default slot is absentstring—''

Events ​

EventDescriptionPayload
clickClick callback with the original MouseEventevent: MouseEvent

Slots ​

SlotDescriptionPayload
defaultTag content—

Migration notes ​

Preserves all three props, the default slot, div root and click behavior. Chalk info text/dot remains #0b73ff; OEM follows the theme primary color (default #007555). Its background stays #e7f1ff. Other colors and dimensions remain unchanged.

Business text comes from value or slots and is not translated automatically. The tag does not add button semantics or keyboard behavior; use appropriate accessible buttons/links for actions. Incorrect ai-action-md event/slot anchors in the old tag page are not claimed, to avoid conflicts with the real action page. Tag routes use their own anchors.