Add a collapse toggle animation to an element or component.
const Collapses = () => {const [open, setOpen] = useState(false);return (<Fragment><ButtononClick={() => setOpen(!open)}aria-controls="example-collapse-text"aria-expanded={open}>Toggle Button</Button><Collapse in={open}><div id="example-collapse-text" className="pt-3">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamusterry richardson ad squid. Nihil anim keffiyeh helvetica, craft beerlabore wes anderson cred nesciunt sapiente ea proident.</div></Collapse></Fragment>)}
Add a fade animation to a child element or component.
const Collapses = () => {const [openFade, setOpenFade] = useState(false);return (<Fragment><ButtononClick={() => setOpenFade(!openFade)}aria-controls="example-fade-text"aria-expanded={openFade}>Toggle text</Button><Fade in={openFade}><div id="example-fade-text" className="pt-4">Anim pariatur cliche reprehenderit, enim eiusmod high life accusamusterry richardson ad squid. Nihil anim keffiyeh helvetica, craft beerlabore wes anderson cred nesciunt sapiente ea proident.</div></Fade></Fragment>)}
Made by Codescandy
Destributed by ThemeWagon