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. | - |
| Variant | AccordionVariant |
Gets or sets the visual variant. | Light |
| SelectionMode | SelectionMode |
Gets or sets the selection mode. | Single |
| FullWidth | bool |
Gets or sets a value indicating whether the accordion is full width. | true |
| Disabled | bool |
Gets or sets a value indicating whether the accordion is disabled. | false |
| Expanded | bool |
Gets or sets a value indicating whether the accordion is expanded by default. | false |
| ShowDividers | bool |
Gets or sets a value indicating whether dividers should be shown between accordion items. | true |
| ShowIndicators | bool |
Gets or sets a value indicating whether indicators should be shown for accordion items. | true |
| ExpandedItems | ICollection<string> |
Gets or sets the collection of item keys that are expanded. | - |
| DisabledItems | ICollection<string> |
Gets or sets the collection of item keys that are disabled. | - |
| ItemClasses | AccordionItemSlots |
Gets or sets the CSS classes for individual accordion items. | - |
| 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. | - |