Collapse

A Collapse component allows for showing/hiding content.

Edit the code below to see your changes live!

API

Collapse

Prop Name
Type
Default
Description
title *string

Collapse title.

initiallyOpenboolean

Defines if panel with content is visible by default.

onCollapseChange(isOpen: boolean) => void

Function that will be called when a title is clicked.

Props ending with * are required

Beta