A component that allows users to expand and collapse content sections.
For more examples, visit the Storybook.
StudsAccordion
PropsThe type of accordion. “single” allows only one item to be expanded at a time, while “multiple” allows multiple items to be expanded.
If true, allows the user to collapse an expanded item.
The controlled value of the item to expand
The value of the item to expand when initially rendered
If true, the accordion will be disabled.
Callback function that is called when the value changes.
<StudsAccordionItem>
PropsThe value of the accordion item.
If true, the accordion item will render as a child component.
If true, the accordion item will be disabled.
For more examples, visit the Storybook.
StudsAccordion
PropsThe type of accordion. “single” allows only one item to be expanded at a time, while “multiple” allows multiple items to be expanded.
If true, allows the user to collapse an expanded item.
The controlled value of the item to expand
The value of the item to expand when initially rendered
If true, the accordion will be disabled.
Callback function that is called when the value changes.
<StudsAccordionItem>
PropsThe value of the accordion item.
If true, the accordion item will render as a child component.
If true, the accordion item will be disabled.
For more examples, visit the Storybook.
StudsAccordion
ParametersGets or sets a value indicating whether multiple items can be expanded.
Gets or sets the index of the selected item.
Gets or sets the callback that is invoked when the selected index changes.
Gets or sets the callback that is invoked when an item is expanded.
Gets or sets the callback that is invoked when an item is collapsed.
Gets or sets the items to be displayed in the accordion.
Specifies additional custom attributes that will be rendered by the component.
Gets or sets the callback that is invoked when the mouse enters an item.
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
StudsAccordionItem
ParametersGets or sets the accordion.
Gets or sets the child content.
Gets or sets the aria-label attribute of the collapse button.
Gets or sets the title attribute of the collapse button.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is disabled.
Gets or sets the aria-label attribute of the expand button.
Gets or sets the title attribute of the expand button.
Gets or sets the icon.
Gets or sets the icon color.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is selected.
Gets or sets the callback that is invoked when the selected state changes.
Gets or sets the header content.
Gets or sets the text.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.