cel-tui
    Preparing search index...

    Type Alias SelectItem

    SelectItem: string | { filterText?: string; label: string; value: string }

    An item in the select list.

    Strings are used as both label and value. Objects allow separate display text, return value, and filter text.

    Type Declaration

    • string
    • { filterText?: string; label: string; value: string }
      • OptionalfilterText?: string

        Text matched against the search query. Defaults to label.

      • label: string

        Displayed text (can include ANSI styling).

      • value: string

        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" }