Show and hide sections with smooth animation. Supports nesting, disabled state, and reactive open/close control.
Order #4189
StatusShipped
Shipping address
100 Market St, San Francisco
Items
2x Studio Headphones
Installation
CLI
Install the component using the StarUI CLI:
Examples
Filter Panel
Multiple independent collapsible sections inside a card. Category uses open=True to start expanded.
Filters
File Tree
Nested collapsibles with chevron rotation to build hierarchical navigation.
button.py
card.py
dialog.py
utils.py
cn.py
app.py
README.md
CHANGELOG.md
pyproject.toml
.gitignore
Disabled
Use disabled=True to lock a section. The trigger becomes non-interactive.
Release Notes
v2.1.0 – Bug fixes and performance improvements
v2.0.0 – New component architecture
Internal Roadmap
This content requires admin access.
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
open |
bool |
False |
Whether the content is initially expanded |
disabled |
bool |
False |
Prevents the trigger from toggling |
signal |
str | Signal |
auto-generated |
Datastar signal name for reactive state management |
cls |
str |
'' |
Additional CSS classes |
| Component | Description |
|---|---|
Collapsible |
Root container that manages open/close state |
CollapsibleTrigger |
Clickable element that toggles the content. Renders a bare <button> — style with cls |
CollapsibleContent |
Collapsible content panel with CSS grid animation. Accepts role (str, default 'region') |