Collapse

Collapse is a component that allows you to expand or collapse an element for display.

クリリンのことか……クリリンのことかーーーっ!!!!!

Usage

import { Collapse } from "@yamada-ui/react"
<Collapse />

Change the Duration

To change the duration, set a number (in seconds) to duration.

クリリンのことか……クリリンのことかーーーっ!!!!!

Unmount on Exit

To unmount the component when it is not visible, set unmountOnExit to true.

私の戦闘力は530000です。ですがもちろんフルパワーであなたと戦う気はありませんからご心配なく……

Disable Opacity Animation

To disable the opacity animation, set animationOpacity to false.

クリリンのことか……クリリンのことかーーーっ!!!!!
私の戦闘力は530000です。ですがもちろんフルパワーであなたと戦う気はありませんからご心配なく……

Add a Starting Height

To add a starting height, set a string or number to startingHeight.

私の戦闘力は530000です。
ですがもちろんフルパワーであなたと戦う気はありませんからご心配なく……

Props

Similar Components

Fade

Fade is a component that gradually shows or hides an element.

FadeScale

FadeScale is a component that gradually scales up to reveal or scales down to hide an element.

Slide

Slide is a component that shows or hides an element from the corners of the page.

SlideFade

SlideFade is a component that gradually shows or hides an element while moving it from a specified position.

Accordion

Accordion is a component for a list that displays information in an expandable or collapsible manner.

Airy

Airy is a component that provides a smooth animation to switch between two elements.

Drawer

Drawer is a component for a panel that appears from the edge of the screen.

Flip

Flip is a component that provides an animation to switch between two elements while flipping.

Uses Components & Hooks

Used By Components & Hooks