Skip to main content

Dropdown

See React Bootstrap/Dropdowns for full documentation and props.

Dropdowns in react-bootstrap provide some level of accessibility but in most cases roles or ids will need to be specifically associated with the menu elements themselves.

Dropdowns can be created with a the Dropdown.Toggle component or a DropdownButton component.

Result
Loading...
Live Editor

With DropdownButton​

The DropdownButton can be used to shorten the JSX required to create a dropdown with a toggle button.

Result
Loading...
Live Editor

With headers and dividers​

Result
Loading...
Live Editor

With multiple columns​

Columns can be created with layout options (flex, grid, etc.).

Result
Loading...
Live Editor

With non-interactive items​

The Dropdown.ItemText component can be used to create non-interactive items.

Result
Loading...
Live Editor

With form inputs​

Result
Loading...
Live Editor

With icons​

Result
Loading...
Live Editor

With badges​

Result
Loading...
Live Editor
Result
Loading...
Live Editor

With helper text​

Result
Loading...
Live Editor

With nested items​

Result
Loading...
Live Editor

MultiLineDropdownItem​

Result
Loading...
Live Editor

Analytics​

The DropdownItem component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'DropdownItem',
actions: {
onClick: { type: 'DROPDOWNITEM_CLICK', payload: 'Click' },
},
};

Props​

MultiLineDropdownItem​

The MultiLineDropdownItem component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'MultiLineDropdownItem',
actions: {
onClick: { type: 'DROPDOWNITEM_CLICK', payload: 'Click' },
},
};