Skip to content
New issue

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

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

Already on GitHub? # to your account

Create a Details component #235

Closed
daniele-zurico opened this issue Oct 14, 2021 · 0 comments · Fixed by #237
Closed

Create a Details component #235

daniele-zurico opened this issue Oct 14, 2021 · 0 comments · Fixed by #237
Assignees
Labels
new component new component
Milestone

Comments

@daniele-zurico
Copy link
Contributor

The component will show and hide the content after you click.

Example: https://design-system.service.gov.uk/components/details/

the component will swap the className automatically and will toggle automatically. The use need only to provide:

  • openClass
  • closeClass
  • title component
  • content component

In case title and content component are not provided the Summary component will throw an error.

Implementation example:

<summary openClass={} closeClass={}>
	<title> YOUR COMPONENT </title>
	<content> YOUR COMPONENT </content>
</summary>
@daniele-zurico daniele-zurico added the new component new component label Oct 14, 2021
@daniele-zurico daniele-zurico added this to the 0.3 milestone Oct 14, 2021
@Ibabalola Ibabalola linked a pull request Oct 18, 2021 that will close this issue
6 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
new component new component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants