React Chip Input Component
Chip Input
Release candidate (RC)
This component is in the Release Candidate phase and its API is considered stable. Minor adjustments may still occur before the final release.
React Chip Input component for CoreUI helps you create tag-like multi-value inputs for skills, categories, or recipients with keyboard support, selection, and form integration.
Overview#
The CoreUI React Chip Input component lets users enter multiple values as chips inside a single field. Use it as a tag input, multi-value selector, or token field for skills, categories, email recipients, and more. The chip input component supports keyboard-friendly entry, chip removal, and optional selection for bulk actions.
- Type values and press
Enteror a separator to create chips. - Chips can be removable and selectable.
- The input stays inline and grows as you type.
- Form integration is supported with a hidden input when
nameis provided.
When to use Chip Input#
Use the React Chip Input component when you need:
- A tag input or token field for free-form multi-value entry
- An email or recipient input where users add multiple addresses
- A skills or category selector in forms
- A filterable multi-select that integrates with standard HTML forms
Basic example#
Use CChipInput to render a multi-value field with predefined chips and inline input.
Note:
CChipInputrenders the inline text input automatically. Whennameis provided, it also renders a hidden input so chip values can participate in standard form submission.
Variants#
Use contextual chip classes inside React Chip Input to represent categories, status, or priority.
In the example below, chip color is assigned dynamically based on the chip text using the chipClassName callback.
Sizes#
Use size="sm" and size="lg" to match surrounding form controls. Default size is provided without a size modifier.
Empty state#
Start with just the input and let users add chips as they type.
With label#
Use a standard form label for accessibility.
Disabled#
Set disabled state on the component to make the input and chips non-interactive. Combine it with removable={false} for disabled, non-removable chips.
Readonly#
Use readonly state when chips should stay visible and focusable, but values must not change.
Selectable chips#
Enable selection for chips managed by Chip Input. In this example, onSelect updates a live list of selected values below the field.
Selected: None
API#
Check out the documentation below for a comprehensive guide to all the props you can use with the components mentioned here.