Accordion

The Accordion component wraps one or more AccordionItems in a div with display set to flex.

The flex direction is "column" on small screens. The direction prop sets flex-direction on desktop screens if you want to spread AccordionItems across the width of larger screens.

Adjust the browser width and items will stack.

Accordion @"src/components/Accordion"

Edit the props to see this component update live!

jsx

© 2023 - smerth.com - All Rights Reserved