Rebar UI

1.0

opinion

TagInput

A field where you type free-form tags: Enter or comma adds one.

Task tagsType, press Enter or comma; Backspace removes the last
DesignHarbour
Empty
Limit reached
DesignEngOps
Disabled
Research
Long tags
Harbour rebrand launch kitCrew interview follow-ups

In context

Edit taskTags on a task card
MCIcon auditHarbour rebrand, due next week

Tags

DesignBrand

Assigned to Maya Chen, Design

Props

PropTypeRequiredDefault
valuesstring[] | undefinedNo—
defaultValuesstring[] | undefinedNo—
onValuesChange((values: string[]) => void) | undefinedNo—
placeholderstring | undefinedNoAdd a tag...
aria-labelstring | undefinedNoTags
disabledboolean | undefinedNo—
maxTagsnumber | undefinedNo—
allowDuplicatesboolean | undefinedNofalse
showEnterHintboolean | undefinedNotrue
classNamestring | undefinedNo—

Duplicates and limits

allowDuplicates (default false) skips a tag that already exists, case-insensitively. maxTags disables the input once reached.

data-rebar-* attributes

data-rebar-component="tag-input" on the root; parts: chips, input.

Migrating to Ant Design

AntD's Select with mode="tags" is the closest equivalent. Not codemod-covered.