Skip to content
Velkin LogoVelkin Logo
Velkin
VELKIN/UI

Modern UI components for product teams and their AI agents. Lit core, typed wrappers, live MCP.

sales@velkinui.com

Product

  • Docs
  • Components
  • Studio
  • Pricing

Resources

  • Quick start
  • Blog
  • Changelog
  • Roadmap
  • Status

Project

  • About
  • Contact
  • License
  • Privacy
  • Terms

© 2026 Velkin. MIT core · Pro licenses available.

VELKIN

Chip

A chip component for tags and filters with dismiss or toggle actions.

vu-chip · @velkin/react/chip

Copy page

Import

React
npm i @velkin/react

import { VuChip } from "@velkin/react/chip";

Examples

API

Props

PropTypeDefaultDescription
labelstring""Plain-text fallback when the default slot has no meaningful content.
valuestring""Stable id for lists, filters, and `vu-close` / `vu-change` detail.
removablebooleanfalseShows dismiss control; `close()` fires cancelable `vu-close`. Default: `false`.
colorVuChipColor"default"Intent token only (no arbitrary CSS colors). Default: `"default"`.
radiusVuChipRadius"full"Corner preset (`none`/`sm`/`md`/`lg`/`full`). Default: `"full"`.
sizeVuChipSize"md"Padding/type scale; `sm`|`md`|`lg` match button, `xs`/`xl` are density extras. Default: `"md"`.
iconstartstring—Iconify id for the leading icon.
iconendstring—Iconify id for the trailing icon.
loadingbooleanfalseLoading overlay; hides label chrome like `vu-button`. Default: `false`.
disabledbooleanfalseDisables interaction. Default: `false`.
variantVuChipVariant"soft"Paint recipe. Default: `"soft"`.
selectedbooleanfalseToggle/filter selected state; sets `aria-pressed` when interactive. Default: `false`.
interactivebooleanfalseRenders the label as a `<button>` when `href` is empty. Default: `false`.
iconOnlybooleanfalseSquare 1:1 chip; hides the label and uses it as `aria-label`. Default: `false`.
hrefstring""When set, renders the label as an `<a>` instead of static text.
targetstring""Anchor target when `href` is set.
relstring""Anchor rel when `href` is set.
closelabelstring—Accessible name for dismiss; empty uses the locale catalog.
arialabelstring—Accessible name override for the interactive label control.
iconStartstring""Iconify id for the leading icon.
iconEndstring""Iconify id for the trailing icon.
closeLabelstring""Accessible name for dismiss; empty uses the locale catalog.
ariaLabelstring""Accessible name override for the interactive label control.

Events

EventDetailDescription
vu-closeVuChipCloseDetailCancelable; default action removes the host.
vu-changeVuChipChangeDetailWhen `interactive` and the user toggles `selected`.

Slots

SlotDescription
—- Primary label; when empty, the string `label` prop is shown.
startLeading content before icons and label.
endTrailing content after label and before dismiss.

CSS parts

PartDescription
chipOuter pill surface.
controlLabel region (span, button, or anchor depending on mode).
startLeading slot wrapper.
endTrailing slot wrapper.
iconEach leading or trailing Iconify icon.
closeDismiss control when `removable` (same UI as vu-alert `close`).
loading-overlayLoading scrim.
loading-spinnerSpinner node.

Methods

MethodDescription
close- Fires cancelable `vu-close`; removes the host when not prevented.

Types

NameDefinition
VuChipChangeDetail
{ selected: boolean; value: string; label: string; }
VuChipCloseDetail
{
  label: string;
  value: string;
  reason: VuChipCloseReason;
}
VuChipColor
"default" | "primary" | "success" | "warning" | "danger"
VuChipRadius
"sm" | "md" | "lg" | "none" | "full"
VuChipSize
"sm" | "md" | "lg" | "xs" | "xl"
VuChipVariant
"solid" | "outline" | "soft" | "ghost" | "dot"

Related

Data display

  • AvatarAn avatar component with image, initials, icon, or custom content.
  • Avatar GroupAn avatar group component that stacks overlapping avatars.
  • BadgeA badge component for counts, status dots, and overlay marks.
  • Data TableA data table component with sorting, filtering, and selection.
  • DividerA divider component for horizontal or vertical layout separation.
  • File ViewerA file viewer component for previewing uploaded or linked files.

Guides

  • AppearanceShared visual props
  • EventsSelection and change events

Browse

  • Previous: BadgeEarlier in the sidebar
  • Next: Data TableLater in the sidebar
  • All componentsBrowse the full index