Created
September 25, 2018 15:32
-
-
Save jonathanharrell/445858993425cfa928dcd14fc5042b75 to your computer and use it in GitHub Desktop.
Accordion Component with Render Props
This file contains 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
<Accordion> | |
<AccordionItem render={({expanded}) => ( | |
<AccordionHeader expanded={expanded}> | |
Header content | |
</AccordionHeader> | |
<AccordionPanel expanded={expanded}> | |
Panel content | |
</AccordionPanel> | |
)} | |
/> | |
</Accordion> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment