sigilUI

Tags Input

Add and remove values in a tag-based input.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { TagsInput } from "@sigil-ui/components";

Usage

<TagsInput placeholder="Add tag..." />

Props

PropTypeDefaultDescription
valuestring[]—The current controlled value.
defaultValuestring[]—Initial value when the component manages its own state.
onChange(tags: string[]) => void—Called when the value changes.
placeholderstring—Hint shown before a value is entered.
disabledboolean—Prevents user interaction when enabled.
maxnumber—Largest allowed value.
inputLabelstring—Input Label configuration.

Token integration

CSS VariablePurpose
--s-input-heightInput height
--s-radius-inputRadius input
--s-radius-mdRadius md
--s-borderBorder
--s-border-styleBorder style
--s-backgroundBackground
--s-primaryPrimary
--s-duration-fastDuration fast
--s-radius-smRadius sm
--s-surfaceSurface
--s-textText
--s-text-mutedText muted