Demos
For examples and details on the usage of this component, visit the component demo page:
Accordion
Properties
| Parameter | Type | Description | Default |
|---|---|---|---|
| ChildContent | RenderFragment |
Gets or sets the content to render. | - |
| StartContent | RenderFragment |
Gets or sets the content to render at the start. | - |
| TitleContent | RenderFragment |
Gets or sets the content to render as the title. | - |
| SubtitleContent | RenderFragment |
Gets or sets the content to render as the subtitle. | - |
| IndicatorContent | RenderFragment<bool> |
Gets or sets the content to render as the indicator icon. | - |
| Id | string |
Gets or sets the unique identifier for the accordion item. | - |
| Title | string |
Gets or sets the title. | - |
| Subtitle | string |
Gets or sets the subtitle. | - |
| Disabled | bool |
Gets or sets a value indicating whether the accordion item is disabled. | false |
| Expanded | bool |
Gets or sets a value indicating whether the accordion item is expanded. | false |
| ExpandedChanged | EventCallback<bool> |
Gets or sets the callback invoked when the expanded state changes. | - |
| Classes | AccordionItemSlots |
Gets or sets the CSS classes for the accordion item slots. | - |
| As | string |
Gets or sets an HTML tag of the component. | - |
| Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
| Style | string |
Gets or sets styles that will be applied to the component. | - |
| AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
| ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |
Methods
| Method | Type | Description |
|---|---|---|
| ExpandAsync | Task |
|
| CollapseAsync | Task |
|
| Dispose | Void |