Skip to content
ghostui

Preview

ProductResearch

Design guidance

Use Tag Input for editable values. Add suggestions when users can search existing values and create their own. Use Tag Group when all available options should stay visible. Enter, comma, Tab or leaving the field commits text. Pasted comma/newline values preserve accepted entries and retain the rejected suffix. Backspace in an empty input removes the last tag. Composition input remains uninterrupted. Give the input a visible associated label; disabled omits values from form submission and readOnly preserves them.

Installation

Install

Install fieldset or field as well when using the labelled example compositions.

Basic usage

Structures

Examples

Suggestions and creation

Search known labels or create a new value. Combobox owns popup navigation.

Selection limit

Pass the existing Field.Description to description. The same helper shows the limit and turns red after a rejection. A rejected value stays available to correct after removing a tag.

ProductResearch

Choose up to 2 labels.

Validate new values

The caller supplies the rule and one description. Rejection changes the description's state without adding another visible message. Editing or accepting a corrected value clears the rejection state. Precise rejection feedback remains announced to assistive technology.

Product

Up to 20 characters per label.

Controlled values and query

Control selected values and draft text independently.

Product

Disabled

Editing and removal are disabled; values are not submitted.

ProductResearch

Read only

Keep values focusable and submitted while blocking edits.

ProductResearch

API reference