Hextech UI

Inline Token Field

Live example

Inline Token Field

Message

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/token-field.json

API reference

These are the main Inline Token Field options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
labelstring (required)—
value / defaultValueTokenFieldValueempty
onValueChange(value: TokenFieldValue) => void—
required / maxLengthnative validation bridgefalse / unlimited
serializationtext | jsontext

Usage notes

Use TokenFieldValue for text and atomic tokens. Pair value with onValueChange for controlled editing. Define serialization intentionally for form submission; raw HTML is not the value format.