UNPKG

@navikt/ds-react

Version:

React components from the Norwegian Labour and Welfare Administration.

27 lines (26 loc) 731 B
import React from "react"; import { ComboboxProps } from "./types.js"; /** * A component that allows the user to search in a list of options * * Has options for allowing only one or multiple options to be selected, * or adding new, user-submitted values. * * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/combobox) * * @example * ```jsx * const options = ["apple", "banana", "orange"]; * * return ( * <Combobox * label="Velg en verdi" * options={options} * id="my-combobox" * shouldAutoComplete * /> * ) * ``` */ declare const ComboboxProvider: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>; export default ComboboxProvider;