Created
July 17, 2020 20:24
-
-
Save DZuz14/79bf37c665497ded81fd161fd9cb8163 to your computer and use it in GitHub Desktop.
Accordion Imported Finished
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Accordion from './Accordion' | |
import items from './items' | |
<Accordion> | |
{items.map(({ summary, detail }) => ( | |
<Accordion.Item key={summary}> | |
<Accordion.Collapsed id={summary}> | |
{summary} | |
</Accordion.Collapsed> | |
<Accordion.Expanded>{detail}</Accordion.Expanded> | |
</Accordion.Item> | |
))} | |
</Accordion> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment