# Collapsible > Shows and hides a section, animating its height. Source: https://native.shellui.dev/docs/components/layout/collapsible ## Installation ```bash shellui-native add collapsible ``` **Platforms:** MAUI ยท Avalonia. Also installs `element-extensions`, `collapsible-trigger`, `collapsible-content`. ## Usage ### Basic **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=collapsible-basic) ## API ### Collapsible | Property | Type | Default | Description | |---|---|---|---| | `Open` | `bool` | `false` | Whether it's open. Two-way bindable. | | Event | Arguments | Description | |---|---|---| | `OpenChanged` | `bool` | User input only: setting Open, or calling Toggle / SetOpen, from code doesn't raise it. | | Method | Description | |---|---| | `SetOpen(bool value)` | Opens or closes it. | | `Toggle()` | Opens it if closed, closes it if open. | ### CollapsibleTrigger | Method | Description | |---|---| | `Activate()` | Does what pressing it does. | | `ShellTriggerView.ActivateAncestor(Element from)` | Called by interactive children (Button) after they handle a click. | ### CollapsibleContent XAML children go to `Content`. No properties of its own.