Dropdown
This is a pass through component from React-Bootstrap.
See React-Bootstrap for documentation.
Basic Usage
Any Paragon component or export may be added to the code example.
Advanced Usage
Any Paragon component or export may be added to the code example.
With IconButton
You can use Dropdown.Toggle with IconButton component, note that all props you provide to Dropdown.Toggle will get passed down to the IconButton.
Any Paragon component or export may be added to the code example.
Theme Variables#
| CSS Variable | Computed Value |
|---|---|
| | |
| | |
| | |
| | |
| | |
Props API#
This is a pass through component from React-Bootstrap; see original props documentation here. You can also pass any HTML attributes, such as onClick, role, etc. Which attributes are available depends on whether or not you have overriden the underlying HTML element using the as property.
- autoCloseDefaulttrue
string|bool - classNameDefault''
string - onToggle
func - showDefaultfalse
bool - variantDefault'light'
enum'light' | 'dark'
This is a pass through component from React-Bootstrap; see original props documentation here. You can also pass any HTML attributes, such as onClick, role, etc. Which attributes are available depends on whether or not you have overriden the underlying HTML element using the as property.
- as
elementTypeDefaultButtonSpecifies the base element.
- bsPrefix
stringDefault'dropdown-toggle'Overrides underlying component base CSS class name.
- id
string|numberRequiredAn html id attribute, necessary for assistive technologies, such as screen readers.
Usage Insights#
Dropdown
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 22.20.3 | 9 | |
| frontend-app-course-authoring | 23.15.1 | 17 | |
| frontend-app-discussions | 23.14.2 | 1 | |
| frontend-app-learner-portal-enterprise | 22.17.0 | 5 | |
| frontend-app-gradebook | 23.4.5 | 2 | |
| frontend-app-profile | 23.14.9 | 2 | |
| frontend-app-publisher | 23.14.8 | 1 | |
| frontend-app-support-tools | 23.4.2 | 4 | |
| frontend-component-header-edx | 23.6.1 | 2 | |
| frontend-component-header | 23.15.0 | 1 | |
| catalog-search | 22.20.5 | 2 |
DropdownButton
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-course-authoring | 23.15.1 | 11 | |
| frontend-app-discussions | 23.14.2 | 1 | |
| frontend-app-learner-record | 23.14.9 | 1 | |
| frontend-app-learner-record | 23.4.5 | 1 | |
| frontend-component-header-edx | 23.6.1 | 1 |
DropdownDivider
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-course-authoring | 23.15.1 | 2 | |
| frontend-app-discussions | 23.14.2 | 1 | |
| frontend-app-learner-portal-enterprise | 22.17.0 | 2 | |
| frontend-app-library-authoring | 21.11.3 | 2 | |
| frontend-component-header-edx | 23.6.1 | 1 |
DropdownHeader
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 22.20.3 | 1 | |
| frontend-app-communications | 23.12.2 | 2 | |
| frontend-app-learner-portal-enterprise | 22.17.0 | 1 | |
| frontend-component-header-edx | 23.6.1 | 1 |
DropdownItem
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-account | 23.14.8 | 1 | |
| frontend-app-admin-portal | 22.20.3 | 18 | |
| frontend-app-authn | 23.14.0 | 14 | |
| frontend-app-communications | 23.12.2 | 1 | |
| frontend-app-discussions | 23.14.2 | 5 | |
| frontend-app-discussions | 23.14.9 | 2 | |
| frontend-app-learner-record | 23.14.9 | 1 | |
| frontend-app-gradebook | 23.4.5 | 2 | |
| frontend-app-learner-record | 23.4.5 | 14 | |
| frontend-app-profile | 23.14.9 | 2 | |
| frontend-app-publisher | 23.14.8 | 1 | |
| frontend-app-support-tools | 23.4.2 | 8 | |
| frontend-component-header-edx | 23.6.1 | 12 | |
| frontend-component-header | 23.15.0 | 1 | |
| catalog-search | 22.20.5 | 6 |
DropdownMenu
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 22.20.3 | 1 | |
| frontend-app-communications | 23.12.2 | 14 | |
| frontend-app-course-authoring | 23.15.1 | 15 | |
| frontend-app-discussions | 23.14.2 | 1 | |
| frontend-app-discussions | 23.14.9 | 1 | |
| frontend-app-learner-portal-enterprise | 22.17.0 | 5 | |
| frontend-app-gradebook | 23.4.5 | 2 | |
| frontend-app-profile | 23.14.9 | 1 | |
| frontend-app-publisher | 23.14.8 | 1 | |
| frontend-app-support-tools | 23.4.2 | 4 | |
| frontend-component-header-edx | 23.6.1 | 2 | |
| frontend-component-header | 23.15.0 | 1 | |
| catalog-search | 22.20.5 | 2 |
DropdownToggle
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 22.20.3 | 1 | |
| frontend-app-course-authoring | 23.15.1 | 15 | |
| frontend-app-discussions | 23.14.2 | 1 | |
| frontend-app-discussions | 23.14.9 | 1 | |
| frontend-app-learner-portal-enterprise | 22.17.0 | 5 | |
| frontend-app-gradebook | 23.4.5 | 2 | |
| frontend-app-profile | 23.14.9 | 1 | |
| frontend-app-publisher | 23.14.8 | 1 | |
| frontend-app-support-tools | 23.4.2 | 4 | |
| frontend-component-header-edx | 23.6.1 | 2 | |
| frontend-component-header | 23.15.0 | 1 | |
| catalog-search | 22.20.5 | 2 |