Skip to Content
EnComponentsCollapsible

Collapsible

The Collapsible component allows hiding and showing content.

Playground

Props

Examples

Basic

Click to expand

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.

With Icon

More information

Here is some additional context about the topic.

Unboxed

Simple details

This collapsible does not have the boxed style.

Props

PropTypeDefaultDescription
boxedbooleantrueApplies a boxed style to the component.
childrenReactNode-The content to hide and show.
classNamestring-Additional CSS classes.
iconIconName-An icon to display before the label.
labelReactNode | string-The text or element to click to expand.

See also

Last updated on