Skip to content

Chip โ€‹

A small status or label chip. Slot any content inside โ€” text, count, icon. Toggle Vue / CSS to switch the live demo and source together.

Basic โ€‹

Five color variants with the default soft style.

Vue SFC

Sizes โ€‹

xs, sm, md, lg.

Vue SFC

Variants โ€‹

Soft, solid and outline across two colors.

Vue SFC

Shapes โ€‹

Pill, rounded and square corners.

Vue SFC

Dot โ€‹

Status dot indicator next to the label.

Vue SFC

Icon โ€‹

Slot an icon on the left or right of the label.

Vue SFC

Interactive โ€‹

Clickable, selected, disabled and removable states.

Vue SFC

Renders as <a> when href is set.

Vue SFC

Event: click โ€‹

Listen for the mno-click event on a clickable chip.

Vue SFC

Event: toggle โ€‹

Two-way binding to a clickable chip's selected state.

Vue SFC

Event: remove โ€‹

Remove items from a list when their close button fires mno-close.

Vue SFC

Event: group โ€‹

Multi-select chip group; clicks toggle each chip.

Vue SFC

Event log โ€‹

Live log of mno-click and mno-close events.

Vue SFC

Customized โ€‹

Override per-element styling with the cssClass prop (Vue) or extra utility classes (CSS).

Vue SFC

Types โ€‹

Importimport { MonoChipProps, MonoStatusDotProps } from 'mono-helper'
PropValueDefaultDescription
<mono-chip>
size'sm' | 'md' | 'lg' | 'xs''md'Sizing scale of the chip.
color'primary' | 'success' | 'danger' | 'warning' | 'info' | 'teal' | 'purple' | 'dark' | 'neutral''primary'Color theme applied to the chip.
variant'solid' | 'outline' | 'soft''soft'Visual style: soft, solid, or outline.
shape'square' | 'pill' | 'rounded''pill'Corner style: pill, rounded, or square.
labelstringโ€”Text content shown inside the chip.
dotbooleanfalseShows a status dot before the label.
removablebooleanfalseAdds a close button to remove the chip.
disabledbooleanfalseDisables interaction and dims the chip.
clickablebooleanfalseMakes the chip clickable and toggleable.
modelValuebooleanfalseTwo-way bound selected state of the chip.
selectedbooleanfalseWhether the chip is in the selected state.
hrefstringโ€”Renders the chip as a link to this URL.
targetstringโ€”Link target when an href is set.
iconPosition'left' | 'right''left'Recommended JS/TS prop.
ariaLabelTextstringโ€”Recommended JS/TS prop.
ariaLabelstringโ€”Shorter alias.
closeLabelstring'Remove'Recommended JS/TS prop.
cssClassChipCssClass{}Per-element class overrides for internal parts.
<mono-status-dot>
status'online' | 'offline' | 'busy' | 'away' | 'custom'โ€”Status state controlling the dot's preset color.
state'online' | 'offline' | 'busy' | 'away' | 'custom''online'Status state controlling the dot's preset color.
pulsebooleanfalseAdds a pulsing animation to the dot.
labelstringโ€”Text label shown next to the dot.
colorstringโ€”Custom dot color for the custom state.