Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    Autocomplete

    A text input that suggests values while the user types but accepts any text.

    Storybook
    Storybook
    Source
    Source
    • In fields where the user types free text but common values can be suggested: city, bank name, product name, search.
    1. Label: the Field label.
    2. Input: the text field, with an optional clear button.
    3. List: the suggestions that match the text.
    • Typing opens the list and filters the suggestions in the Provider language, ignoring case; “i” and “İ” follow the Turkish rule.
    • Choosing a suggestion writes it into the field; the user can also leave text that is not in the list.
    • While loading, a loading row shows and the suggestions are not filtered again; pass server results as they are.
    • limit caps the number of suggestions shown.
    • Keep suggestions short; put the most common values first.
    • Where a choice from the list is required, use Combobox instead.
    • The label names the field; the placeholder is an example or an instruction.
    • emptyText tells the user they can keep typing: “No suggestions”.