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.
Dropdown.Deprecated
Any Paragon component or export may be added to the code example.
(Deprecated) with icon element
Any Paragon component or export may be added to the code example.
(Deprecated) basic usage
Any Paragon component or export may be added to the code example.
(Deprecated) menu items as elements
Any Paragon component or export may be added to the code example.
(Deprecated) with icon element
Any Paragon component or export may be added to the code example.
Theme Variables (SCSS)#
$dropdown-min-width: 18rem !default;$dropdown-padding-x: 0 !default;$dropdown-padding-y: .5rem !default;$dropdown-spacer: .125rem !default;$dropdown-font-size: $font-size-base !default;$dropdown-color: $body-color !default;$dropdown-bg: $white !default;$dropdown-border-color: rgba($black, .15) !default;$dropdown-border-radius: $border-radius !default;$dropdown-border-width: $border-width !default;$dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default;$dropdown-divider-bg: theme-color("gray", "background") !default;$dropdown-divider-margin-y: calc($spacer / 2) !default;$dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default;$dropdown-link-color: theme-color("gray", "dark-text") !default;$dropdown-link-hover-color: darken(theme-color("gray", "dark-text"), 5%) !default;$dropdown-link-hover-bg: $light-300 !default;$dropdown-link-active-color: $component-active-color !default;$dropdown-link-active-bg: $component-active-bg !default;$dropdown-link-disabled-color: theme-color("gray", "light-text") !default;$dropdown-item-padding-y: .25rem !default;$dropdown-item-padding-x: 1rem !default;$dropdown-header-color: theme-color("gray", "light-text") !default;$dropdown-header-padding: $dropdown-padding-y $dropdown-item-padding-x !default;
Props API#
- children
node
- typeDefault'a'
string
- children
node
- classNameDefaultnull
string
- children
node
- children
node
- classNameDefault'btn-light'
string
- as
elementType
DefaultButtonSpecifies the base element.
- bsPrefix
string
Default'dropdown-toggle'Overrides underlying component base CSS class name.
- id
string
|number
RequiredAn 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 | 20.46.2 | 6 | |
frontend-app-discussions | 20.44.0 | 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.2 | 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-discussions | 20.44.0 | 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 | 20.46.2 | 2 | |
frontend-app-discussions | 20.44.0 | 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 | 20.46.2 | 13 | |
frontend-app-discussions | 20.44.0 | 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.2 | 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 | 20.46.2 | 6 | |
frontend-app-discussions | 20.44.0 | 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.2 | 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-lib-content-components | 21.5.6 | 1 |