Created
July 17, 2020 19:32
-
-
Save DZuz14/c6763083132ecc43a615e23e194543fb to your computer and use it in GitHub Desktop.
Accordion with Expanded And Collapsed
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 React from 'react' | |
| import Collapsed from './Collapsed' | |
| import Expanded from './Expanded' | |
| const Accordion = ({ children }) => { | |
| return <div>{children}</div> | |
| } | |
| Accordion.Collapsed = Collapsed | |
| Accordion.Expanded = Expanded | |
| Accordion.Item = ({ children }) => children | |
| export default Accordion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment