1.0.0 • Published 10 months ago

react-accordion-z v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

NPM JavaScript Style Guide

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