In react, display the matched elements in the sliding action. A component that works like jQuery slidedown, slideUp method in react.
In react, display the matched elements in the sliding action.
```
npm i @todys/react-slide-toggle
or
yarn add @todys/react-slide-toggle
`javascript
import { SlideToggle } from '@todys/react-slide-toggle'
const [toggleState, setToggleState] = useState(false);
const clickEvent = () => {
setToggleState(prev => !prev)
}
ReactDOM.render(
| params | value | defaultValue | description |
|--------|-------|--------------|-------------|
|state|Boolean|false|Boolean value that determines whether elements are represented within the slideToggle component|
|duration|Number|0.5|A number determining how long the animation will run.|