Stepped Accordion
Displays content sequentially, reducing overwhelm when there's too much to show at once.
When to use
Section titled “When to use”- Use a Stepped Accordion when content follows a sequence and only one section should be open at a time.
- Use a Stepped Accordion on small and medium breakpoints, where there isn’t enough horizontal space for tabs. See Responsive behavior below.
When not to use
Section titled “When not to use”- Don’t use a Stepped Accordion when sections are independent and can be read in any order. Use Accordion instead.
- Don’t use a Stepped Accordion when people need to read every step anyway. The extra click adds friction: use a normal page with standard headers instead.
- Don’t nest stepped accordions within each other to create hierarchy levels.
Content guidelines
Section titled “Content guidelines”Keep the text short and descriptive. If a step needs more text than the guidelines below allow, link to another page instead.
- Heading: maximum 2 rows on the smallest breakpoint. Describe or relate to the content in the full description.
- Description: maximum 4 rows on the smallest breakpoint.
Considerations
Section titled “Considerations”Stepped Accordion and tabs
Section titled “Stepped Accordion and tabs”Bowers & Wilkins surround sound
Immersive listening
21 speakers and two amplifiers deliver high-fidelity 3D audio throughout the cabin.
Integrated speakers
A soundbar, a 1040W amplifier and nine speakers deliver surround sound for everyone.
Authentic sound
Select Dynamic, Soft or Voice mode to deepen your listening experience.
Use a Stepped Accordion on its own.
Bowers & Wilkins surround sound
Immersive listening
21 speakers and two amplifiers deliver high-fidelity 3D audio throughout the cabin.
Integrated speakers
A soundbar, a 1040W amplifier and nine speakers deliver surround sound for everyone.
Authentic sound
Select Dynamic, Soft or Voice mode to deepen your listening experience.
Don’t combine tabs and a Stepped Accordion in the same element.
Text and image sizing
Section titled “Text and image sizing”
Immersive listening
21 speakers and 3D audio.
Integrated speakers
Surround sound for everyone.
Authentic sound
Dynamic, Soft and Voice modes.
Keep the image taller than the text next to it.

Immersive listening
21 speakers and 3D audio.
Integrated speakers
Surround sound for everyone.
Authentic sound
Dynamic, Soft and Voice modes.
Don’t use an image that is shorter than the text next to it.
Responsive behavior
Section titled “Responsive behavior”Use stepped accordions on small and medium breakpoints. On large and extra-large breakpoints, switch to tab buttons instead.
Show code
import { SteppedAccordion, SteppedAccordionDetails, SteppedAccordionSummary,} from '@volvo-cars/react-accordion';import type { TabGroupState } from '@volvo-cars/react-headless';import { useTab, useTabList, useTabPanel } from '@volvo-cars/react-headless';import { useState } from 'react';
const steps = [ { title: 'Immersive listening', content: 'This advanced sound system employs 21 speakers and two amplifiers to deliver high-fidelity audio in 3D throughout the cabin.', }, { title: 'Integrated speakers', content: 'With the new soundbar concept, a 1040W amplifier and nine high-performance speakers, this state-of-the-art system delivers immersive surround sound for everyone.', }, { title: 'Authentic sound', content: 'Every aspect of the audio system is tuned to the interior. Select Dynamic, Soft or Voice mode to deepen your listening experience.', },];
function Tab({ state, index, title,}: { state: TabGroupState; index: number; title: string;}) { const { tabProps } = useTab({ state, index }); return ( <button {...tabProps} className="tab"> {title} </button> );}
export function SteppedAccordionResponsive() { const [selectedIndex, setSelectedIndex] = useState(0); const { tabListProps, tabGroupState } = useTabList({ selectedIndex, onChange: setSelectedIndex, }); const { tabPanelProps } = useTabPanel({ state: tabGroupState, index: selectedIndex, });
return ( <div className="stack-24 p-16"> <div className="stack-8 lg:text-center"> <h3 className="font-20 font-medium">Bowers & Wilkins surround sound</h3> <p className="text-secondary"> Bowers & Wilkins shares our commitment to engineering excellence. We’ve collaborated with them to bring state-of-the-art sound to the EM90. </p> </div> <img src="/images/decorative/em90-tweeter.avif" alt="Bowers & Wilkins tweeter on a dashboard" className="img w-full object-cover aspect-4/5 lg:aspect-16/9" /> <div className="lg:hidden"> <SteppedAccordion> {steps.map(({ title, content }, index) => ( <SteppedAccordionDetails key={title} open={selectedIndex === index} onToggle={() => setSelectedIndex(index)} > <SteppedAccordionSummary>{title}</SteppedAccordionSummary> <div className="pb-8 px-24 text-secondary">{content}</div> </SteppedAccordionDetails> ))} </SteppedAccordion> </div> <div className="until-lg:hidden stack-16"> <div {...tabListProps} aria-label="Sound system features" className="tablist justify-center" > {steps.map(({ title }, index) => ( <Tab key={title} state={tabGroupState} index={index} title={title} /> ))} </div> <p {...tabPanelProps} className="text-secondary text-center"> {steps[selectedIndex].content} </p> </div> </div> );}