Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components/accordion #123

Merged
merged 7 commits into from
Sep 11, 2019
Merged

Components/accordion #123

merged 7 commits into from
Sep 11, 2019

Conversation

palingheorghe
Copy link
Collaborator

Related to #88
If anybody wants to review my code, that could be really awesome.

How to use this component:
<Accordion dataArray={data} />

The component takes an array of objects like the following:

const data = [
  { title: "First Chapter", content: "Lorem ipsum dolor sit amet", 
    icon: {
      name: 'keyboard-arrow-up',
      family: 'material',
      size: 16,
    } 
 },
  { title: "2nd Chapter", content: "Lorem ipsum dolor sit amet" },
  { title: "3rd Chapter", content: "Lorem ipsum dolor sit amet" }
];

Different props are in the propType section of the file.

Peace! ❤️✌🏽

@palingheorghe palingheorghe merged commit b47d687 into Alpha-1 Sep 11, 2019
@palingheorghe palingheorghe deleted the components/accordion branch September 11, 2019 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant