React Collapse Component API

Collapse API

Explore the API reference for the React Collapse component and discover how to effectively utilize its props for customization.

On this page

CCollapse

jsx
import { CCollapse } from '@coreui/react-pro'
PropertyDefaultType
className-string, undefined

A string of all className you want applied to the base component.

horizontal-boolean, undefined

Set horizontal collapsing to transition the width instead of height.

onHide-(() => void), undefined

Callback fired when the component requests to be hidden.

onShow-(() => void), undefined

Callback fired when the component requests to be shown.

visible-boolean, undefined

Toggle the visibility of component.