Code Snippets
Searchable snippet manager.
A syntax-highlighted snippet manager with search and copy.
type · code_snippets
Persists its state to the backend store across sessions.
How to use it
Just ask for it in chat — the agent emits this widget and the shell renders it:
Try saying
“a code snippet manager”
Example
The agent returns this A2UI component (inside the components array of a /chat response):
code_snippets.json
{
"type": "code_snippets",
"id": "snippets"
}Properties
| Prop | Type | Description |
|---|---|---|
id | string | Storage key (optional) |
Backing endpoint
This widget reads/writes through /api/store/{id}. See the API reference.
Browse the full Widget Index, the Widget Catalog, or learn the A2UI system behind it.