Tabs
Leave feedbackThis is a pass through component from React-Bootstrap.
See React-Bootstrap for documentation.
Uncontrolled usage
Any Paragon component or export may be added to the code example.
Controlled usage
Any Paragon component or export may be added to the code example.
Button group usage
Any Paragon component or export may be added to the code example.
Pills usage
Any Paragon component or export may be added to the code example.
Inverse-Pills usage
Any Paragon component or export may be added to the code example.
Inverse Tabs usage
Any Paragon component or export may be added to the code example.
With notification
Any Paragon component or export may be added to the code example.
With screen reader text in notification
Any Paragon component or export may be added to the code example.
Responsive support
Any Paragon component or export may be added to the code example.
Tabs.Deprecated
(Deprecated) basic usage
Any Paragon component or export may be added to the code example.
Theme Variables (SCSS)#
$tab-notification-height: 1rem !default;$tab-notification-width: 1rem !default;$tab-notification-font-size: $font-size-xs !default;$tab-more-link-dropdown-toggle-padding-x: .7rem !default;$tab-more-link-dropdown-toggle-padding-y: $spacer !default;$tab-more-link-dropdown-toggle-focus-bg: $primary-500 !default;$tab-more-link-dropdown-toggle-focus-border-color: $tab-more-link-dropdown-toggle-focus-bg !default;$tab-more-link-dropdown-toggle-focus-color: $white !default;$tab-more-link-dropdown-toggle-btn-focus-color: $tab-more-link-dropdown-toggle-focus-color !default;$tab-more-link-dropdown-toggle-btn-focus-border-color: $tab-more-link-dropdown-toggle-focus-bg !default;$tab-more-link-dropdown-toggle-active-color: $tab-more-link-dropdown-toggle-focus-color !default;$tab-more-link-dropdown-toggle-hover-color: $tab-more-link-dropdown-toggle-focus-bg !default;$tab-inverse-pills-link-dropdown-toggle-padding-x: .625rem !default;$tab-inverse-pills-link-dropdown-toggle-padding-y: $spacer !default;$tab-inverse-pills-link-dropdown-toggle-focus-bg: $white !default;$tab-inverse-pills-link-dropdown-toggle-focus-color: $primary-500 !default;$tab-inverse-pills-link-dropdown-toggle-focus-border-color: $tab-inverse-pills-link-dropdown-toggle-focus-bg !default;$tab-inverse-pills-link-dropdown-toggle-active-color: $tab-inverse-pills-link-dropdown-toggle-focus-color !default;$tab-inverse-pills-link-dropdown-toggle-active-hover-color: $tab-inverse-pills-link-dropdown-toggle-focus-bg !default;$tab-inverse-pills-link-dropdown-toggle-active-hover-bg: $primary-300 !default;$tab-inverse-pills-link-dropdown-distance: 5px !default;$tab-inverse-tabs-link-dropdown-toggle-padding-x: .625rem !default;$tab-inverse-tabs-link-dropdown-toggle-padding-y: $spacer !default;$tab-inverse-tabs-link-dropdown-toggle-hover-bg: transparent !default;
Props API#
- labels
node[]Requiredspecifies the list of elements that will be displayed within each of the tabbed views. It is the content relevant to each label. Children should not be passed as Props, but should instead be nested between the opening and closing
<Tabs> </Tabs>tags. - children
element[]Requiredspecifies the list of headings that will appear on all of the tabs that will be created.
- title
nodeRequiredSpecifies the
Tabnavigation title. - notification
nodeSpecifies notification bubble content. It appears on the top right of the
Tab. - disabled
boolSpecifies whether
Tabis disabled. - eventKey
string|numberA unique identifier for the Component, the
eventKeymakes it distinguishable from others in a set. Similar to React'skeyprop, in that it only needs to be unique amongst the Components siblings, not globally. - tabClassName
stringSpecifies class name to append to the base element.
Usage Insights#
Tab
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 20.39.2 | 12 | |
| frontend-app-authn | 20.45.5 | 6 | |
| frontend-app-learner-portal-enterprise | 20.45.1 | 4 | |
| frontend-app-learner-portal-programs | 20.30.0 | 1 | |
| frontend-app-learner-record | 20.45.0 | 1 | |
| frontend-app-support-tools | 20.45.0 | 11 | |
| frontend-component-header-edx | 20.45.5 | 1 | |
| frontend-component-header | 20.45.5 | 1 | |
| prospectus | 20.45.2 | 2 |
Tabs
| Project Name | Paragon Version | Instance Count | |
|---|---|---|---|
| frontend-app-admin-portal | 20.39.2 | 5 | |
| frontend-app-authn | 20.45.5 | 5 | |
| frontend-app-learner-portal-enterprise | 20.45.1 | 1 | |
| frontend-app-learner-portal-programs | 20.30.0 | 1 | |
| frontend-app-learner-record | 20.45.0 | 1 | |
| frontend-app-support-tools | 20.45.0 | 3 | |
| frontend-component-header-edx | 20.45.5 | 1 | |
| frontend-component-header | 20.45.5 | 1 | |
| prospectus | 20.45.2 | 1 |