react-accordion-z
v1.0.0
Published
React hook accordion (lib)
Downloads
5
Maintainers
Readme
Description
- Simple accordion (funny)
Usage
Install the package
npm install react-accordion-z
Import the module in the place you want to use:
import Accordion from "react-accordion-z";
Snippet
<Accordion
title={'This is title'}
// subTitle={'12'}
>
this
</Accordion>
Props
see index.d.ts
children | React.ReactNode / string className? | string isOpen? | boolean title? | string showAnimateTitle? | boolean subTitle? | string showSubTitle? | boolean scrollIfOpen? | boolean customizeArrow? | React.ReactNode / string handleToggle? | (isOpen: boolean) => void
Note
RUN
LIVE EXAMPLE
License
MIT