cinch-collapsible
v3.0.2
Published
A simple lightweight react accordian component
Downloads
39
Maintainers
Readme
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