---
title: Collapsible
description: A collapsible panel controlled by a button trigger.
links:
doc: https://base-ui.com/react/components/collapsible#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add collapsible
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import {
Collapsible,
CollapsiblePanel,
CollapsibleTrigger,
} from "@/components/ui/collapsible"
```
```tsx
Can I access the file in the cloud?
Yes, you can access the file in the cloud.
```
## API Reference
### Collapsible
Root component. Alias for `Collapsible.Root` from Base UI.
### CollapsibleTrigger
Trigger button that toggles the collapsible panel. Styled wrapper for `Collapsible.Trigger` from Base UI.
### CollapsiblePanel
Collapsible content panel. Styled wrapper for `Collapsible.Panel` from Base UI with animated height transitions.