-
Notifications
You must be signed in to change notification settings - Fork 42
Tabs extended
Core
Layout component
Tabs extended extends the Carbon tabs component by adding the accordion to smaller breakpoints. This extension in feature allows the content to be more accessible at smaller breakpoints and mobile users.
Back links (2)
- extended media depends on the Tabs extended component
- _An example of a Tabs extended
The children can have anything placed inside of it from content to another component as seen in Tabs extended media. The children are shared across the Carbon tabs, and Carbon accordion across all breakpoints. Each tab item, and related accordion item has an area for its own children.
The tabs leverages Carbon tabs as is for the most part as a dependency, and passes its corresponding children 1 for that tab. The only differences are listed below. Children 1, and tab titles mirror accordion, and is only visible at larger breakpoints.
condition | description | |
---|---|---|
2.0.1 |
lg xlg max
|
Any breakpoint lg and larger renders the Carbon tabs
|
2.0.2 |
sm md
|
Any breakpoint md and smaller hides the Carbon tabs
|
See Carbon tabs for more information
condition | description | |
---|---|---|
2.1.1 |
content overflows at 2 lines | Content overflows at 2 lines instead of the components original 1 line overflow. |
2.1.2 |
removed fixed width | Tab width is based on content, and should not have a fixed width. |
2.1.3 |
active |
First item active onLoad unless author overrides. Mirrors accordion's 3 active state as user interacts. |
See design specs r1 for visual details
condition | description | |
---|---|---|
2.2.1 |
horizontal (default) |
By default, or when this option is selected this component lays its tabs out in a horizontal line next to each other with children 1 below. |
2.2.2 |
vertical |
When the vertical option is selected the tabs are stacked on top of each other off to the side of its children 1. |
See design specs r1 for visual details
The accordion uses the Carbon accordion as a dependency without hardly any changes. This is used at the smaller breakpoints to allow for better reading of tabs on smaller devices, and mirrors the children 1 and active tabs within the tab 2 at larger breakpoints.
condition | description | |
---|---|---|
3.0.1 |
lg xlg max
|
Any breakpoint lg and larger hides the Carbon accordion
|
3.0.2 |
sm md
|
Any breakpoint md and smaller renders the Carbon accordion
|
See Carbon accordion for more information
condition | description | |
---|---|---|
3.1.1 |
active |
First item active onLoad unless author overrides. Mirrors tabs' 2 active state as user interacts. Only one active item at a time. |
Publishing guidelines (6)
Layout component (37)
- CTA block
- CTA section
- Callout media
- Callout quote
- Callout
- Card group
- Card section carousel
- Card section images
- Card section offset
- Card section simple
- Card section
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Content block
- Content group banner
- Content group cards
- Content group pictograms
- Content group simple
- Content group
- Content item horizontal
- Content item
- Content section
- Dotcom shell
- Feature section
- Lead space block
- Lead space search
- Lead space
- Link list section
- Logo grid
- Table of contents
- Tabs extended media
- Tabs extended
- Universal banner
Service (3)
UI component (34)
- Back to top
- Background media
- Button group
- CTA
- Card in card
- Card link
- Card
- Carousel
- Expressive modal
- Feature card
- Filter group
- Filter panel
- Footer
- Image with caption
- Image
- Input select
- Leaving ibm
- Lightbox media viewer
- Link list
- Link with icon
- Locale modal
- Masthead L0
- Masthead L1
- Masthead account
- Masthead mobile
- Masthead navigation
- Masthead
- Mega menu
- Pictogram item
- Quote
- Search typeahead
- Tag group
- Tag link
- Video