Skip to main content

InterfaceDropDownButtonProps

Admin Docs


Interface: InterfaceDropDownButtonProps

Defined in: src/types/shared-components/DropDownButton/interface.ts:66

Interface for dropdown button component props.

Extends

Properties

ariaLabel?

optional ariaLabel: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:95

ARIA label for accessibility.


btnStyle?

optional btnStyle: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:41

Base class(es) for the toggle button. Applied first; often set by the wrapping component. Use this for default button layout/theme.

Inherited from

InterfaceDropDownProps.btnStyle


buttonLabel?

optional buttonLabel: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:126

The label of the button.


containerClassName?

optional containerClassName: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:53

Consumer override: extra class name(s) for the dropdown container, merged with parentContainerStyle. Use from parent screens (e.g. CSS module classes) to style the container without coupling to test IDs.

Inherited from

InterfaceDropDownProps.containerClassName


dataTestIdPrefix?

optional dataTestIdPrefix: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:100

Data test id prefix for testing purposes.


disabled?

optional disabled: boolean

Defined in: src/types/shared-components/DropDownButton/interface.ts:136

Whether the dropdown button is disabled.


drop?

optional drop: "start" | "end" | "up" | "down"

Defined in: src/types/shared-components/DropDownButton/interface.ts:80

Direction the dropdown menu opens.


icon?

optional icon: ReactNode

Defined in: src/types/shared-components/DropDownButton/interface.ts:131

The icon to be displayed on the button.


id?

optional id: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:70

The id of the dropdown button.


optional menuClassName: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:46

Custom class name for the dropdown menu.

Inherited from

InterfaceDropDownProps.menuClassName


onSelect()

onSelect: (value) => void

Defined in: src/types/shared-components/DropDownButton/interface.ts:90

Callback function when an option is selected.

Parameters

value

string

Returns

void


options

options: InterfaceDropDownOption[]

Defined in: src/types/shared-components/DropDownButton/interface.ts:75

The options to be displayed in the dropdown.


parentContainerStyle?

optional parentContainerStyle: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:35

Base class(es) for the dropdown container. Applied first; often set by the wrapping component (e.g. SortingButton, Navbar). Use this for default layout/theme.

Inherited from

InterfaceDropDownProps.parentContainerStyle


placeholder?

optional placeholder: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:141

Placeholder text when no option is selected.


searchable?

optional searchable: boolean

Defined in: src/types/shared-components/DropDownButton/interface.ts:146

Whether the dropdown should be searchable.


searchPlaceholder?

optional searchPlaceholder: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:151

Placeholder text for the search input.


selectedValue?

optional selectedValue: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:85

The currently selected value.


showCaret?

optional showCaret: boolean

Defined in: src/types/shared-components/DropDownButton/interface.ts:156

Whether to show the caret icon on the dropdown button.

Default Value

true

toggleClassName?

optional toggleClassName: string

Defined in: src/types/shared-components/DropDownButton/interface.ts:60

Consumer override: extra class name(s) for the toggle button, merged with btnStyle. Use from parent screens (e.g. CSS module classes) to style the toggle without coupling to test IDs.

Inherited from

InterfaceDropDownProps.toggleClassName


variant?

optional variant: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "dark" | "light" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-dark" | "outline-light"

Defined in: src/types/shared-components/DropDownButton/interface.ts:105

The variant/style of the button.