MenuChevron Down
TagsInput - Docs - Artefact

TagsInput

Forms
Smart auto-detect

A component that allows users to enter multiple tags as a list.

Usage

React
Hono

CMS Page Builder

This component is available as a tagsInput block in the Page Builder (content/pages/*.json):

{
  "type": "tagsInput",
  "label": "Amenities",
  "defaultValue": ["WiFi", "Fireplace", "Hot Tub"]
}

Props

PropTypeDefaultDescription
valuestring[]-Current tags.
defaultValuestring[]-Initial tags.

CMS Configuration

- label: TagsInput
  name: tagsInput
  widget: object
  fields:
    - { label: Label, name: label, widget: string, required: false }
    - { label: Default Tags, name: defaultValue, widget: list, required: false }

Hydration

Tier-2: Hydrates when value, defaultValue, onValueChange, or input state is present.