An item in the select list.
Strings are used as both label and value. Objects allow separate display text, return value, and filter text.
Optional
Text matched against the search query. Defaults to label.
label
Displayed text (can include ANSI styling).
Value returned on selection.
// Simple string item"apple"// Rich item with ANSI-colored label{ label: "claude-sonnet-4 (free)", value: "anthropic/claude-sonnet-4", filterText: "claude-sonnet-4" } Copy
// Simple string item"apple"// Rich item with ANSI-colored label{ label: "claude-sonnet-4 (free)", value: "anthropic/claude-sonnet-4", filterText: "claude-sonnet-4" }
An item in the select list.
Strings are used as both label and value. Objects allow separate display text, return value, and filter text.