MYDS Logo

    MYDS

    Beta

    Accordion

    Organize and display content in a compact, collapsible format, commonly used for FAQ sections.

    accordion-anatomy.pngaccordion-anatomy.png

    The key elements that define a Accordion’s structure and function.

    1. Header text: The main title or label for the accordion section.
    2. Body text: The content that expands or collapses within the accordion.
    3. Chevron Down (Default): The default icon, displayed at a rotation of 0 degrees, indicating that the section is closed.
    4. Chevron Down (Expanded): The icon rotates to 180 degrees to indicate the section is open.

    State

    accordion-variation.pngaccordion-variation.png

    Defines how a Accordion visually responds to user actions like hover, focus, or click, providing feedback and enhancing usability.

    1. Click trigger area (Header): The clickable area on the header that expands or collapses the accordion when clicked, providing access to the body content.
    2. Hover state: Underline the Header text.
    3. Closed state (Default): Hide Body text (Opacity:0%).
    4. Opened state: Click on trigger area (Head) to open accordion showing Body text.

    Demo

    The example video below demonstrates the Accordion’s interaction and intended functionality in action.

    On this page