Open experiment
Token tag editor
A small collection editor for turning typed labels into discrete tokens. Enter or comma creates, named buttons remove, Backspace removes the final token from an empty field, and a polite status reports every change.
Lab tested Responsive Dark mode Interactive
- Version
- 1.0.0
- Updated
- 2026-08-02
- Dependencies
- Zero
<div class="cmp-token-editor">
<label for="cmp-token-editor-input">Project tags</label>
<div class="cmp-token-editor__field">
<span class="cmp-token-editor__list"></span>
<input
id="cmp-token-editor-input"
type="text"
placeholder="Add a tag"
aria-describedby="cmp-token-editor-help"
/>
</div>
<small id="cmp-token-editor-help">Press Enter or comma to create a token.</small>
<span class="cmp-token-editor__status" aria-live="polite">No tags yet</span>
</div>
No runtime reactions detected Open in Editor
Validated in the lab
Experiment report
- Schema and source files passed
- Responsive test passed
- Keyboard test passed
- No console errors
Component ingredients
- Dependencies
- None
- Browser support
- Current Chrome, Current Edge, Current Firefox, Current Safari
- Version
- 1.0.0
- Last tested
- 2026-08-02
Accessibility notes
- The text field includes linked creation instructions.
- Each token has a named remove button.
- Additions, duplicates, and removals are announced politely.
License: MIT License for open-source use, modification, and distribution.