InterfaceDropDownButtonProps
Interface: InterfaceDropDownButtonProps
Defined in: src/types/shared-components/DropDownButton/interface.ts:66
Interface for dropdown button component props.
Extends
Properties
ariaLabel?
optionalariaLabel:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:95
ARIA label for accessibility.
btnStyle?
optionalbtnStyle: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?
optionalbuttonLabel:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:126
The label of the button.
containerClassName?
optionalcontainerClassName: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?
optionaldataTestIdPrefix:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:100
Data test id prefix for testing purposes.
disabled?
optionaldisabled:boolean
Defined in: src/types/shared-components/DropDownButton/interface.ts:136
Whether the dropdown button is disabled.
drop?
optionaldrop:"start"|"end"|"up"|"down"
Defined in: src/types/shared-components/DropDownButton/interface.ts:80
Direction the dropdown menu opens.
icon?
optionalicon:ReactNode
Defined in: src/types/shared-components/DropDownButton/interface.ts:131
The icon to be displayed on the button.
id?
optionalid:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:70
The id of the dropdown button.
menuClassName?
optionalmenuClassName: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?
optionalparentContainerStyle: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?
optionalplaceholder:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:141
Placeholder text when no option is selected.
searchable?
optionalsearchable:boolean
Defined in: src/types/shared-components/DropDownButton/interface.ts:146
Whether the dropdown should be searchable.
searchPlaceholder?
optionalsearchPlaceholder:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:151
Placeholder text for the search input.
selectedValue?
optionalselectedValue:string
Defined in: src/types/shared-components/DropDownButton/interface.ts:85
The currently selected value.
showCaret?
optionalshowCaret: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?
optionaltoggleClassName: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?
optionalvariant:"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.