cinch-collapsible

3.0.2 • Public • Published

Cinch-Collapse

Cinch Collapse is a minimally styled React collapse and accordian component. It was been developed so that with the least effort you can style it to suit your project.

Demo

v3.0.0 changes Removed default padding on Panel Removed react & react-dom from dependencies

v2.0.0 changes

  • onChange listener
  • className prop

in order to make use of the onChange listener, each panel must have a unique string id

Collapsible

  • accordian?: boolean;
  • timeout?: number;
  • ease?: "ease" | "inOut" | "in" | "out" | number[];
  • delay?: number;
  • className?: string;
  • onChange?: (ids: string) => void;

Panel

  • header: string | JSX.Element;
  • noPadding?: boolean;
  • id?: string
  • className?: string

/cinch-collapsible/

    Package Sidebar

    Install

    npm i cinch-collapsible

    Weekly Downloads

    3

    Version

    3.0.2

    License

    ISC

    Unpacked Size

    34.1 kB

    Total Files

    18

    Last publish

    Collaborators

    • jcdiprose