Dropdowns
CoreUI PRO hexagon
Our Admin Panel isn’t just a mix of third-party components. It’s the only Next.js dashboard built on a professional, enterprise-grade UI Components Library. This component is part of this library, and we present only the basic usage of it here. To explore extended examples, detailed API documentation, and customization options, refer to our docs.
React Dropdown Split button

Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of boolean prop split for proper spacing around the dropdown caret.

We use this extra class to reduce the horizontal padding on either side of the caret by 25% and remove the margin-left that's attached for normal button dropdowns. Those additional changes hold the caret centered in the split button and implement a more properly sized hit area next to the main button.

React Dropdown Sizing

Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.

React Dropdown Single button

Opt into darker dropdowns to match a dark navbar or custom style by set dark property. No changes are required to the dropdown items.

And putting it to use in a navbar:

React Dropdown Dropup

Trigger dropdown menus above elements by adding direction="dropup" to the <CDropdown> component.

React Dropdown Dropright

Trigger dropdown menus at the right of the elements by adding direction="dropend" to the <CDropdown> component.

React Dropdown Dropleft

Trigger dropdown menus at the left of the elements by adding direction="dropstart" to the <CDropdown> component.