--- title: Responsive Accordion Tabs description: Added in 6.3.0, use the Markup of the Accordion or Tabs components to create Responsive Accordion Tabs. video: 'FKzzaWR6j2M' sass: - scss/components/_accordion.scss - scss/components/_tabs.scss js: js/foundation.responsiveAccordionTabs.js tags: - tabcordion --- ## Basics Either the Accordion Markup or the Tabs Markup can be used to responsively switch between the two components at different breakpoints. The Accordion should have an id specified, but the plugin will automatically generate one if the id is omitted. Accordion content should also have an ID, or the # of the href should be specified, otherwise a random id will be generated

The accordion/tabs values can be in any order.

#### Accordion HTML Markup

Watch this part in video

edit on codepen button
```html ```

Once you put it all together, here's what you get!
Scale your browser down to see the toggle happen.
I am an `Accordion on small and large` but I am `Tabs on medium`

#### Tabs HTML Markup

Watch this part in video

edit on codepen button
```html

one

Check me out! I'm a super cool Tab panel with text content!

two

three

Check me out! I'm a super cool Tab panel with text content!

four

five

Check me out! I'm a super cool Tab panel with text content!

six

```

Once you put it all together, here's what you get!
Scale your browser down to see the toggle happen.
I am `Tabs on small and large` and `Accordion on medium`

one

Check me out! I'm a super cool Tab panel with text content!

two

three

Check me out! I'm a super cool Tab panel with text content!

four

five

Check me out! I'm a super cool Tab panel with text content!

six


The responsive behavior can be set through the `data-responsive-accordion-tabs` option.
`tabs|accordion` , `medium-tabs|accordion` , `large-tabs|accordion` sets the behavior
--- ## Plugin Options Plugin options can be set as individual data attributes, one combined data-options attribute, or as an object passed to the plugin's constructor. Learn more about how JavaScript plugins are initialized.
All `data-options` from Accordion or Tabs can be passed through.