diff --git a/packages/website/content/components/accordion.md b/packages/website/content/components/accordion.md index 51987ec..7c92c86 100644 --- a/packages/website/content/components/accordion.md +++ b/packages/website/content/components/accordion.md @@ -3,29 +3,39 @@ section = ["Components"] +++ -# accordion.md +# Accordion -Example: +## Basic + +The accordion component allows to hide and show content in the page. The +accordion is composed of the following elements: + +- `msp-accordion`: the main container that encapsulates multiple toggable elements. +- `msp-accordion-item`: a single toggable element. +- `msp-accordion-header`: this element acts as the header and responds to the `onclick` event to toggle the content. +- `msp-accordion-collapse`: container for the content, needed to help with dynamic height and transitions. +- `msp-accordion-content`: the content of the accordion. + +### Example: ```html ```