Skip to content

Chip

Represents tags, categories, attributes, or simple selections in a compact format.

First release: 1.0.0 Latest update: July 1, 2025 Current version: 1.0.0

React Angular Vue Svelte HTML

Import

import { PlusChip } from '@plusui/react';
import { PlusChipComponent } from '@plusui/angular';
import { PlusChip } from '@plusui/vue';
import PlusChip from '@plusui/svelte';
<script src="https://cdn.jsdelivr.net/npm/@plusui/core"></script>

Package

@plusui/react
@plusui/angular
@plusui/vue
@plusui/svelte
@plusui/core

Docs

Changelog

Chip Changelog

Recent changes and updates for the chip component

v1.0.0

June 20, 2025
Feat

Added Chip component for tags and labels

  • Multiple status variants
  • Dismissible chips
  • Custom icons
  • Accessibility support

The Chip component displays information such as tags, categories, attributes, or selections in a compact and optionally interactive format. It supports various styles, sizes, and statuses.

Chip - anatomy

A standard chip using default settings.

Default Chip
Show code

The kind prop defines the chip’s visual style: filled (solid background) or outlined (transparent with border).

KindKind
Show code

The status prop sets the chip’s color scheme to convey semantic meaning.

StatusStatusStatusStatusStatus
Show code

The size prop controls the chip’s dimensions.

SizeSizeSize
Show code

The shape prop controls the border radius: full (pill shape) or rounded (slightly rounded corners).

ShapeShape
Show code

Set the invert prop to use an inverted color scheme, typically for display on darker backgrounds.

InvertedInvertedInvertedInvertedInverted
Show code

Set the dismiss prop to add a close button. Clicking it fires the dismiss event.

DismissibleOutlined Dismiss
Show code
Show console

Set the disabled prop to prevent user interaction, including dismissing.

DisabledDisabled OutlinedDisabled Dismissible
Show code
Chip - layout spacing Chip - light & dark mode
  • Keyboard Behavior:
    • Chips are focusable via the Tab key if not disabled.
    • If a chip is dismissible, the dismiss button (plus-icon) is focusable and can be activated with Enter or Space.
  • Screen Reader:
    • The component has role="status" and aria-live="polite".
    • aria-label is set based on the status prop (e.g., “success chip”). Consider providing more specific context if needed, potentially via an aria-labelledby attribute pointing to associated text.
    • aria-disabled is set based on the disabled prop.
    • The dismiss button has an aria-label="Remove".
  • Required Developer Actions:
    • Ensure the chip’s content (passed via the default slot) is meaningful and understandable.
    • If chips represent interactive elements (like filters), consider using a more appropriate role (e.g., button or checkbox) depending on the interaction model, potentially by wrapping the plus-chip or using a different component.
    • Ensure sufficient color contrast between the chip’s text/icon and its background, especially when using status colors or customizing with CSS properties.
Site favicon Plus UI Design System on Figma
Visit
NameTypeDefaultDescriptionRequired
kind'filled' | 'outlined''filled'Visual style of the chip.No
size'sm' | 'md' | 'lg''md'Size of the chip.No
type'default' | 'avatar''default'Type of chip, affecting potential internal layout (e.g., for avatar).No
status'default' | 'success' | 'warning' | 'danger' | 'info''default'Status/color variant of the chip.No
shape'full' | 'rounded''full'Controls the border radius style.No
invertbooleanfalseToggles the inverted color scheme.No
dismissbooleanfalseShows a dismiss button.No
disabledbooleanfalseDisables chip interaction, including the dismiss button.No
NamePayload TypeDescription
dismissCustomEvent<void>Fired when the dismiss button is clicked.
NameDescription
default (unnamed)The main content of the chip.
PartDescription
baseThe main chip container element (div).
iconThe dismiss icon container (plus-icon).
NameDescription
--text-colorControls the text color.
--border-colorControls the border color.
--bg-defaultControls the default background color.
--bg-hoveredControls the background on hover.
--bg-pressedControls the background when pressed.
--bg-focusedControls the background when focused.

Join the Community

Plus UI is built by the community. Join us on our platforms to contribute, get help, and stay up to date.