# Dropdown > Dropdown menu with new DropdownTrigger, DropdownContent, and DropdownItem subcomponents. Source: https://shellui.dev/docs/v0.3/components/interactive/dropdown v0.3.0 adds `DropdownTrigger`, `DropdownContent`, and `DropdownItem` subcomponents. `DropdownItem` automatically closes the menu after clicking. The old `Trigger` render fragment + `IsOpen` binding API is still supported. Dropdowns close on Escape from 0.3.3. ## What changed from v0.2.x | v0.2.1 | v0.3.0 | |--------|-------------| | `` render fragment + `IsOpen` binding | `` subcomponent, no external state | | Manual close on item click | `DropdownItem` auto-closes parent on click | ## Installation ```bash shellui add dropdown ``` `dropdown-trigger`, `dropdown-content`, and `dropdown-item` are auto-installed as dependencies. ## Usage ### Compositional (recommended) ```razor Profile Settings Log out ``` ### With click handlers ```razor Actions Edit Duplicate Delete @code { private void HandleEdit() { } private void HandleDuplicate() { } private void HandleDelete() { } } ``` ### User menu ```razor My profile Billing Team settings Sign out ``` ### Disabled item ```razor Menu Available Unavailable ``` ### Legacy (also supported) The v0.2.x `` + `` pattern with external `@bind-IsOpen` still works: ```razor Open Menu @code { private bool isOpen = false; } ``` ## API Reference ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | `DropdownTrigger` + `DropdownContent` | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Trigger button content | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | `DropdownItem` list | ### `` | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `ChildContent` | `RenderFragment` | — | Item label | | `Disabled` | `bool` | `false` | Prevents selection | | `OnClick` | `EventCallback` | — | Callback — menu closes automatically after firing | | `Class` | `string?` | `null` | Additional CSS classes |