blessed-components - v1.20.0
    Preparing search index...

    Interface RenderSearchFieldOptions

    Options accepted by renderSearchField.

    interface RenderSearchFieldOptions {
        characters?: SearchFieldCharacters;
        disabled?: boolean;
        error?: string;
        focused?: boolean;
        height?: number;
        hint?: string;
        label: string;
        placeholder?: string;
        query?: string;
        required?: boolean;
        width: number;
    }
    Index

    Properties

    Character tokens used by the field and supporting text.

    disabled?: boolean

    Whether focus and editing are unavailable.

    error?: string

    Error text. When present it takes precedence over hint.

    focused?: boolean

    Whether the input currently owns terminal focus.

    height?: number

    Maximum rendered height.

    hint?: string

    Hint text shown when no error is present.

    label: string

    Field label.

    placeholder?: string

    Placeholder shown when query is empty.

    query?: string

    Current query text.

    required?: boolean

    Whether the label should include a required indicator.

    width: number

    Maximum terminal-cell width of each line.