ContextList
Retrieved context records with source metadata, state, and optional open or remove actions.
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.
Interactive example
Loading interactive example
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