Fray Electron
    Preparing search index...

    Type Alias FrayAutocompleteProps

    FrayAutocompleteProps: Omit<
        AutocompleteProps<string, false, false, false>,
        "options" | "freeSolo" | "renderInput" | "multiple",
    > & {
        inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
        label?: string;
        options: readonly string[];
        placeholder?: string;
        rowHeight?: number;
        windowed?: boolean;
    }

    Props for FrayAutocomplete: MUI Autocomplete with plain string options. Only listed options can be chosen; typed text searches the list and reverts to the chosen option on blur.

    Type Declaration

    • OptionalinputProps?: React.InputHTMLAttributes<HTMLInputElement>

      Attributes for the text input, such as aria-label.

    • Optionallabel?: string

      Label shown on the text field.

    • options: readonly string[]

      Choices offered while typing.

    • Optionalplaceholder?: string

      Placeholder shown while empty.

    • OptionalrowHeight?: number

      Height of each row in pixels when windowed. Defaults to 28.

    • Optionalwindowed?: boolean

      Mounts only visible rows; turn off for short lists. Defaults to true.