Context list
Retrieved context records with source metadata, state, and optional open or remove actions.
Loading interactive example
Use ContextList for a named set of evidence or prompt context. Show source type, location, size, and state when available. Keep open and remove actions explicit. Announce each semantic state change once.
API
| Member | Type | Kind | Required | Default |
|---|---|---|---|---|
announcement | string | prop | No | undefined |
empty | Snippet | snippet | No | undefined |
items | readonly ContextItem[] | prop | Yes | |
label | string | prop | Yes | |
onOpen | (item: ContextItem) => void | callback | No | undefined |
onRemove | (item: ContextItem) => void | callback | No | undefined |
Examples
Source
Loading source