The props passed to the Dropdown component.

Hierarchy

  • DropdownProps

Properties

className: string

A string representing the className of the dropdown component.

classNameProps: string

A string representing the className of the dropdown's properties.

dataTestId: string

A string representing the test-id for testing purposes.

defaultValueSelectedOption?: string

The default selected option when the dropdown is first initialized.

onOptionClick: ((option) => void)

Type declaration

    • (option): void
    • A function that is triggered when an option in the dropdown is clicked.

      Parameters

      • option: string

        The selected option.

      Returns void

options: string[]

An array of strings representing the options available in the dropdown.

style: CSSProperties

The CSS properties to be applied to the dropdown component.

Generated using TypeDoc