Blazorise Accordion API
Explore the Blazorise Accordion API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Accordion documentation.
API
Parameters
Accordion
| Parameter | Default | Type |
|---|---|---|
Animated | true | bool |
Enables the transitions supplied by the CSS provider. Set to false for immediate changes. | ||
AnimationDuration | null | int? |
Overrides the provider's animation duration, in milliseconds. Null preserves the provider's default. Zero or a negative value disables transitions. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this Accordion. | ||
AccordionToggle
| Parameter | Default | Type |
|---|---|---|
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this AccordionToggle. | ||
AccordionItem
| Parameter | Default | Type |
|---|---|---|
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this AccordionItem. | ||
Visible | false | bool |
Specifies the accordion item visibility state. | ||
AccordionHeader
| Parameter | Default | Type |
|---|---|---|
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this AccordionHeader. | ||
AccordionBody
| Parameter | Default | Type |
|---|---|---|
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this AccordionBody. | ||
Events
AccordionToggle
| Event | Type |
|---|---|
Clicked | EventCallback<MouseEventArgs> |
Notifies when the toggle button is clicked. | |
AccordionItem
| Event | Type |
|---|---|
VisibleChanged | EventCallback<bool> |
Notifies when the accordion item visibility state changes. | |
AccordionHeader
| Event | Type |
|---|---|
Clicked | EventCallback<MouseEventArgs> |
Notifies when the accordion header is clicked. | |
Methods
AccordionItem
| Method | Return | Parameters |
|---|---|---|
Toggle | Task | — |
Toggles the accordion item visibility state.
| ||