UNPKG

@commercetools-uikit/select-utils

Version:

Utilities for working with select components.

11 lines (10 loc) 519 B
import { type Props as ReactSelectProps } from 'react-select'; import type { TSelectInputProps } from '@commercetools-uikit/select-input'; export declare const optionStyleCheckboxComponents: (appearance: TSelectInputProps["appearance"]) => ReactSelectProps["components"]; /** * Returns react-select props to be used with the <Select> component, when optionStyle is set to "checkbox" */ export declare const optionsStyleCheckboxSelectProps: () => { hideSelectedOptions: boolean; closeMenuOnSelect: boolean; };