• Renders a component in which each child component of the class AccordionItem can be expanded.

    Parameters

    Returns null | ReactElement<any, any>

    Example

    <Accordion header={<b>Header</b>}>
    <AccordionItem header={<b>Item 1</b>}>
    <p>Content 1</p>
    </AccordionItem>
    <AccordionItem header={<b>Item 2</b>}>
    <p>Content 2</p>
    </AccordionItem>
    </Accordion>

Generated using TypeDoc