Collapsible
An interactive component which expands/collapses a panel.
Order #4189
Status
Shipped
Installation
Usage
<Collapsible>
<CollapsibleTrigger>Can I use this in my project?</CollapsibleTrigger>
<CollapsibleContent>Yes. Free to use for personal and commercial projects. No attribution required.</CollapsibleContent>
</Collapsible>Composition
Use the following composition to build a Collapsible:
Collapsible
├── CollapsibleTrigger
└── CollapsibleContentControlled State
Use the Open and OpenChanged parameters to control the state.
<Collapsible @bind-Open="_open">
<CollapsibleTrigger>Toggle</CollapsibleTrigger>
<CollapsibleContent>Content</CollapsibleContent>
</Collapsible>
@code {
private bool _open;
}Basic
Settings Panel
Use a trigger button to reveal additional settings.
File Tree
Use nested collapsibles to build a file tree. In a conversation, this is the File Tree pattern.
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
الطلب #4189
الحالة
تم الشحن
API Reference
Collapsible
Other attributes are passed to the element it renders.
CollapsibleContent
Other attributes are passed to the element it renders.
CollapsibleTrigger
Other attributes are passed to the element it renders.