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.
- 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.
- 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 | 20.46.3 | 4 | |
| frontend-app-course-authoring | 21.5.6 | 12 | |
| frontend-app-discussions | 20.46.3 | 1 | |
| frontend-app-learner-dashboard | 20.46.2 | 2 | |
| frontend-app-learner-portal-enterprise | 20.45.4 | 5 | |
| frontend-app-learning | 20.46.0 | 3 | |
| frontend-app-profile | 20.46.3 | 1 | |
| frontend-app-publisher | 20.46.3 | 1 | |
| frontend-app-support-tools | 20.46.0 | 4 | |
| frontend-component-header-edx | 21.5.6 | 2 | |
| frontend-component-header | 21.5.6 | 1 | |
| catalog-search | 20.45.0 | 2 | |
| frontend-lib-content-components | 21.5.6 | 5 | |
| prospectus | 20.46.2 | 2 |
DropdownButton
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-course-authoring | 21.5.6 | 1 | |
| frontend-app-discussions | 20.46.3 | 1 | |
| frontend-app-learner-record | 20.46.3 | 1 | |
| frontend-component-header-edx | 21.5.6 | 1 | |
| frontend-component-header | 21.5.6 | 1 | |
| prospectus | 20.46.2 | 2 |
DropdownDivider
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-course-authoring | 21.5.6 | 2 | |
| frontend-app-discussions | 20.46.3 | 1 | |
| frontend-app-learner-dashboard | 20.46.2 | 2 | |
| frontend-app-learner-portal-enterprise | 20.45.4 | 2 |
DropdownHeader
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-learner-dashboard | 20.46.2 | 1 | |
| frontend-app-learner-portal-enterprise | 20.45.4 | 1 |
DropdownItem
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 20.46.3 | 12 | |
| frontend-app-course-authoring | 21.5.6 | 32 | |
| frontend-app-discussions | 20.46.3 | 5 | |
| frontend-app-learner-dashboard | 20.46.2 | 9 | |
| frontend-app-learner-portal-enterprise | 20.45.4 | 11 | |
| frontend-app-learner-record | 20.46.3 | 1 | |
| frontend-app-learning | 20.46.0 | 3 | |
| frontend-app-profile | 20.46.3 | 2 | |
| frontend-app-publisher | 20.46.3 | 1 | |
| frontend-app-support-tools | 20.46.0 | 8 | |
| frontend-component-header-edx | 21.5.6 | 9 | |
| frontend-component-header | 21.5.6 | 6 | |
| catalog-search | 20.45.0 | 5 | |
| frontend-lib-content-components | 21.5.6 | 12 | |
| prospectus | 20.46.2 | 3 |
DropdownMenu
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 20.46.3 | 4 | |
| frontend-app-course-authoring | 21.5.6 | 12 | |
| frontend-app-discussions | 20.46.3 | 1 | |
| frontend-app-learner-dashboard | 20.46.2 | 2 | |
| frontend-app-learner-portal-enterprise | 20.45.4 | 5 | |
| frontend-app-learning | 20.46.0 | 3 | |
| frontend-app-profile | 20.46.3 | 1 | |
| frontend-app-publisher | 20.46.3 | 1 | |
| frontend-app-support-tools | 20.46.0 | 4 | |
| frontend-component-header-edx | 21.5.6 | 2 | |
| frontend-component-header | 21.5.6 | 1 | |
| catalog-search | 20.45.0 | 2 | |
| frontend-lib-content-components | 21.5.6 | 5 | |
| prospectus | 20.46.2 | 2 |
DropdownToggle
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 20.46.3 | 4 | |
| frontend-app-course-authoring | 21.5.6 | 12 | |
| frontend-app-discussions | 20.46.3 | 1 | |
| frontend-app-learner-dashboard | 20.46.2 | 2 | |
| frontend-app-learner-portal-enterprise | 20.45.4 | 5 | |
| frontend-app-learning | 20.46.0 | 3 | |
| frontend-app-profile | 20.46.3 | 1 | |
| frontend-app-publisher | 20.46.3 | 1 | |
| frontend-app-support-tools | 20.46.0 | 4 | |
| frontend-component-header-edx | 21.5.6 | 2 | |
| frontend-component-header | 21.5.6 | 1 | |
| catalog-search | 20.45.0 | 2 | |
| frontend-lib-content-components | 21.5.6 | 5 | |
| prospectus | 20.46.2 | 2 |