Examples
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 content to be rendered inside the accordion. | - |
Variant | AccordionVariant |
Gets or sets an appearance style of the accordion. | Light |
SelectionMode | SelectionMode |
Gets or sets the selection mode for the accordion, determining how items can be selected. | 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 items are disabled. | false |
Expanded | bool |
Gets or sets a value indicating whether the accordion items are expanded. | false |
ShowDividers | bool |
Gets or sets a value indicating whether to display a divider under each accordion item (except the last one). | true |
ShowIndicators | bool |
Gets or sets a value indicating whether to display an indicator in each accordion item. | true |
ExpandedItems | ICollection<string> |
Gets or sets the set of accordion item identifiers that are expanded by default in the accordion. | - |
DisabledItems | ICollection<string> |
Gets or sets the set of accordion item identifiers that are disabled in the accordion. | - |
ItemClasses | AccordionItemSlots |
Gets or sets the CSS class names for the accordion items 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. | - |