Skip to main content

Disclosure


Example

<Disclosure title="Disclosure" initialIsOpen={false}>
<Body size="medium">Content</Body>
</Disclosure>

Props

NameTypeDefault ValueRequiredDescription
titlestringYes
level1 | 21No
iconPosition"leading" | "trailing"No
isOpenbooleanNo
onToggle(isOpen: boolean) => voidNo
initialIsOpenbooleanNo

Also known as

This component may also be known in other UI libraries as CollapsiblePanel

Related components