--- 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.
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`
Panel 1. Lorem ipsum dolor
Nowhere to Goone
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