Token
Display a compact text token inside a TokenField or other content.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Token label content. |
className | string | — | Additional CSS class. |
Specimens
Standalone tokens
Use Token outside of a TokenField to display the same visual style, for example in a table cell or a resource detail header.
productionwebbackend
Inline token list
Tokens in an inline arrangement, mimicking how TokenField lays them out.
reacttypescriptvite
Import
import { Token } from "@solarius/onset";