An open API service indexing awesome lists of open source software.

https://github.com/zmitry/react-collaps

1KB React component for collapsing content with animation. Useful for building accordions
https://github.com/zmitry/react-collaps

react

Last synced: about 2 months ago
JSON representation

1KB React component for collapsing content with animation. Useful for building accordions

Awesome Lists containing this project

README

          

## React-collaps

React component for collapsing and expanding state.
Useable for developing component like accordions and similar stuff.

[demo preview](https://react-collaps.vercel.app/)

## How to use

```jsx
function Section({ children, title, id }) {
const [state, setState] = useState(false);
return (


{
setState((v) => !v);
}}
>

{title}




{children}



);
});
```