Accordion
import { TgAccordionComponent, TgAccordionItemComponent, TgAccordionHeadingComponent } from '@trademe/tangram';
Accordions save vertical space on a page by showing and hiding multiple blocks of content. Consider using reveal if you need to show and hide a single block of content.
Example
Behaviour
- The last accordion item loses its bottom border and margin.
- At the
breakpoint and larger:md- Accordions sit within the padding of their container
- Icons sit next to the item heading.
- When the screen is smaller than the
breakpoint:md- Accordions bleed out from their container to full width
- Icons are aligned to the right.