Chat Composer Token Element
@astryxdesign/core v0.7.1 · ChatComposerTokenElement
Props
| Prop | Type | Default | Description |
|---|---|---|---|
token | ChatComposerToken | — | Required. Either a badge config { value, label?, variant?, icon? } or a custom token { value, render }. value is what the draft serializes to. |
The chip is a span with data-astryx-token and contenteditable="false", so it can sit next to a serialized draft without being typed into. A badge token draws a Badge; icon takes a built-in glyph name such as check, or an Iconify id such as carbon:user. A custom token draws whatever render returns.