Tabs
This 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.
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;
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
node
RequiredSpecifies the
Tab
navigation title. - notification
node
Specifies notification bubble content. It appears on the top right of the
Tab
. - disabled
bool
Specifies whether
Tab
is disabled. - eventKey
string
|number
A unique identifier for the Component, the
eventKey
makes it distinguishable from others in a set. Similar to React'skey
prop, in that it only needs to be unique amongst the Components siblings, not globally. - tabClassName
string
Specifies class name to append to the base element.
Usage Insights#
Tab
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-admin-portal | 20.26.3 | 12 | |
frontend-app-authn | 20.34.0 | 6 | |
frontend-app-learner-portal-enterprise | 20.31.1 | 4 | |
frontend-app-learner-portal-programs | 20.28.4 | 1 | |
frontend-app-support-tools | 20.26.0 | 10 | |
prospectus | 20.32.3 | 2 |
Tabs
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-admin-portal | 20.26.3 | 5 | |
frontend-app-authn | 20.34.0 | 5 | |
frontend-app-learner-portal-enterprise | 20.31.1 | 1 | |
frontend-app-learner-portal-programs | 20.28.4 | 1 | |
frontend-app-support-tools | 20.26.0 | 3 | |
prospectus | 20.32.3 | 1 |