npm_versionnpm Paragon package page

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 VariableComputed Value










Props API#

Dropdown 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.

  • autoClose string | bool
    Defaulttrue
  • className string
    Default''
  • onToggle func
  • show bool
    Defaultfalse
  • variant enum'light' | 'dark'
    Default'light'
DropdownToggle 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.

  • as elementType

    Specifies the base element.

    DefaultButton
  • bsPrefix string

    Overrides underlying component base CSS class name.

    Default'dropdown-toggle'
  • id string | number Required

    An html id attribute, necessary for assistive technologies, such as screen readers.

Usage Insights#

Dropdown

Project NameParagon VersionInstance Count
frontend-app-admin-portal
21.13.1
8
frontend-app-course-authoring
22.8.1
20
frontend-app-discussions
22.7.0
1
frontend-app-learner-dashboard
22.9.0
1
frontend-app-learner-portal-enterprise
21.13.1
5
frontend-app-learning
22.10.0
2
frontend-app-library-authoring
21.11.3
1
frontend-app-profile
22.10.0
1
frontend-app-publisher
21.13.1
1
frontend-app-support-tools
21.13.1
4
frontend-component-header-edx
21.13.1
2
frontend-component-header
22.10.0
1
catalog-search
21.13.1
2
prospectus
20.46.2
5

DropdownButton

Project NameParagon VersionInstance Count
frontend-app-course-authoring
22.8.1
1
frontend-app-discussions
22.7.0
1
frontend-app-learner-record
22.10.0
1
frontend-component-header-edx
21.13.1
1
frontend-component-header
22.10.0
1
prospectus
20.46.2
2

DropdownDivider

Project NameParagon VersionInstance Count
frontend-app-course-authoring
22.8.1
2
frontend-app-discussions
22.7.0
1
frontend-app-learner-portal-enterprise
21.13.1
2
frontend-component-header-edx
21.13.1
1

DropdownHeader

Project NameParagon VersionInstance Count
frontend-app-admin-portal
21.13.1
1
frontend-app-learner-portal-enterprise
21.13.1
1
frontend-component-header-edx
21.13.1
1

DropdownItem

Project NameParagon VersionInstance Count
frontend-app-account
22.10.0
1
frontend-app-admin-portal
21.13.1
16
frontend-app-course-authoring
22.8.1
45
frontend-app-discussions
22.7.0
5
frontend-app-learner-dashboard
22.9.0
2
frontend-app-learner-portal-enterprise
21.13.1
11
frontend-app-learner-record
22.10.0
1
frontend-app-learning
22.10.0
2
frontend-app-library-authoring
21.11.3
2
frontend-app-profile
22.10.0
2
frontend-app-publisher
21.13.1
1
frontend-app-support-tools
21.13.1
8
frontend-component-header-edx
21.13.1
12
frontend-component-header
22.10.0
2
catalog-search
21.13.1
6
prospectus
20.46.2
6

DropdownMenu

Project NameParagon VersionInstance Count
frontend-app-admin-portal
21.13.1
8
frontend-app-course-authoring
22.8.1
18
frontend-app-discussions
22.7.0
1
frontend-app-learner-dashboard
22.9.0
1
frontend-app-learner-portal-enterprise
21.13.1
5
frontend-app-learning
22.10.0
2
frontend-app-library-authoring
21.11.3
1
frontend-app-profile
22.10.0
1
frontend-app-publisher
21.13.1
1
frontend-app-support-tools
21.13.1
4
frontend-component-header-edx
21.13.1
2
frontend-component-header
22.10.0
1
catalog-search
21.13.1
2
prospectus
20.46.2
5

DropdownToggle

Project NameParagon VersionInstance Count
frontend-app-admin-portal
21.13.1
8
frontend-app-course-authoring
22.8.1
18
frontend-app-discussions
22.7.0
1
frontend-app-learner-dashboard
22.9.0
1
frontend-app-learner-portal-enterprise
21.13.1
5
frontend-app-learning
22.10.0
2
frontend-app-library-authoring
21.11.3
1
frontend-app-profile
22.10.0
1
frontend-app-publisher
21.13.1
1
frontend-app-support-tools
21.13.1
4
frontend-component-header-edx
21.13.1
2
frontend-component-header
22.10.0
1
catalog-search
21.13.1
2
prospectus
20.46.2
5