# Collapsible > Toggle-able content section with the new CollapsibleTrigger and CollapsibleContent subcomponents. Source: https://shellui.dev/docs/v0.3/components/layout/collapsible v0.3.0 adds `CollapsibleTrigger` and `CollapsibleContent` subcomponents for a fully compositional pattern, replacing the previous parameter-driven open state management. ## What changed from v0.2.x | v0.2.1 | v0.3.0 | |--------|-------------| | External `IsOpen` + `IsOpenChanged` binding required | `CollapsibleTrigger` manages toggle internally | | Content always in `ChildContent` | `CollapsibleContent` only renders when open | ## Installation ```bash shellui add collapsible ``` `collapsible-trigger` and `collapsible-content` are auto-installed as dependencies. ## Usage ### Basic ```razor Show details

Hidden content revealed on click.

``` ### With custom trigger styling ```razor
Advanced options 3

Option 1

Option 2

Option 3

``` ### Default open ```razor Already expanded

This starts visible.

``` ## API Reference ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `IsOpen` | `bool` | `false` | Initial open state | | `Disabled` | `bool` | `false` | Prevents toggling | | `Class` | `string?` | `null` | Additional CSS classes | | `ChildContent` | `RenderFragment` | — | `CollapsibleTrigger` + `CollapsibleContent` | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Button label / content | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Content shown when open |