Skip to main content

InterfaceDropDownButtonProps

Admin Docs


Interface: InterfaceDropDownButtonProps

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

Interface for dropdown button component props.

Extends​

Properties​

ariaLabel?​

optional ariaLabel: string

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

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:129

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:103

Data test id prefix for testing purposes.


disabled?​

optional disabled: boolean

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

Whether the dropdown button is disabled.


drop?​

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

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

Direction the dropdown menu opens.


icon?​

optional icon: ReactNode

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

The icon to be displayed on the button.


id?​

optional id: string

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

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:93

Callback function when an option is selected.

Parameters​

value​

string

Returns​

void


options​

options: InterfaceDropDownOption[]

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

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:144

Placeholder text when no option is selected.


searchable?​

optional searchable: boolean

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

Whether the dropdown should be searchable.


searchPlaceholder?​

optional searchPlaceholder: string

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

Placeholder text for the search input.


selectedValue?​

optional selectedValue: string

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

The currently selected value.


showCaret?​

optional showCaret: boolean

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

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


type?​

optional type: "filter" | "sort"

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

Optional type for auto-selecting icon: 'sort' shows SortIcon, 'filter' shows FilterAltOutlined

Inherited from​

InterfaceDropDownProps.type


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:108

The variant/style of the button.