freenowtech / freenowtech/wave

`Collapsible` component

Open
#285 0 comments 2 reactions 0 assignees View on GitHub
component design-review
Dominant language
TypeScript
Stars
67
Forks
31
Avg merge
1d 8h
Merged PRs (30d)
4

Description

An outcome of the #282.

Implement the `Collapsible` component, which takes two arbitrary components to use as the Header and the Content of the component.

The behavior of the component should be the same as HTML [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) tag and allow to show or hide content on click.

Approximate usage:

```jsx


Hello


Long content

```

Properties:
* `open` boolean, to set the state of the component
* `onOpen`, `onClose` for the handlers of the corresponding state

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.