
```jsx
import { CCollapse } from '@coreui/react'
// or
import CCollapse from '@coreui/react/src/components/collapse/CCollapse'
```

<div className="table-responsive table-api border rounded mb-3">
  <table className="table">
    <thead>
      <tr>
        <th>Property</th>
        <th>Default</th>
        <th>Type</th>
      </tr>
    </thead>
    <tbody>
      <tr id="ccollapse-class-name">
        <td className="text-primary fw-semibold">className<a href="#ccollapse-class-name" aria-label="CCollapse className permalink" className="anchor-link after">#</a></td>
        <td>-</td>
        <td><code>{`string`}</code></td>
      </tr>
      <tr>
        <td colSpan="3">
          <p>A string of all className you want applied to the base component.</p>
        </td>
      </tr>
      <tr id="ccollapse-horizontal">
        <td className="text-primary fw-semibold">horizontal<a href="#ccollapse-horizontal" aria-label="CCollapse horizontal permalink" className="anchor-link after">#</a></td>
        <td>-</td>
        <td><code>{`boolean`}</code></td>
      </tr>
      <tr>
        <td colSpan="3">
          <p>Set horizontal collapsing to transition the width instead of height.</p>
        </td>
      </tr>
      <tr id="ccollapse-on-hide">
        <td className="text-primary fw-semibold">onHide<a href="#ccollapse-on-hide" aria-label="CCollapse onHide permalink" className="anchor-link after">#</a></td>
        <td>-</td>
        <td><code>{`() => void`}</code></td>
      </tr>
      <tr>
        <td colSpan="3">
          <p>Callback fired when the component requests to be hidden.</p>
        </td>
      </tr>
      <tr id="ccollapse-on-show">
        <td className="text-primary fw-semibold">onShow<a href="#ccollapse-on-show" aria-label="CCollapse onShow permalink" className="anchor-link after">#</a></td>
        <td>-</td>
        <td><code>{`() => void`}</code></td>
      </tr>
      <tr>
        <td colSpan="3">
          <p>Callback fired when the component requests to be shown.</p>
        </td>
      </tr>
      <tr id="ccollapse-visible">
        <td className="text-primary fw-semibold">visible<a href="#ccollapse-visible" aria-label="CCollapse visible permalink" className="anchor-link after">#</a></td>
        <td>-</td>
        <td><code>{`boolean`}</code></td>
      </tr>
      <tr>
        <td colSpan="3">
          <p>Toggle the visibility of component.</p>
        </td>
      </tr>
    </tbody>
  </table>
</div>
