Blazor Expansion Panel Overview
The Ignite UI for Blazor Expansion Panel is a lightweight accordion component which can be rendered in two states - collapsed or expanded. The expansion panel can be toggled using mouse click, or keyboard interactions.
Blazor Expansion Panel Example
The simplest way to start using the
IgbExpansionPanel is as follows:
Binding to events
The Expansion Panel component raises the following events:
The following sample demonstrates how we can add some logic to our component to make it show/hide the
subtitle depending on the current state of the panel.
IgbExpansionPanel control allows all sorts of content to be added inside of its body. It can render input, charts and even other expansion panels!
IgbExpansionPanel allows for easy customization of the header through the exposed title, subTitle and indicator slots.
Configuring the position of the expansion indicator can be done through the
indicatorAlignment property of the Expansion Panel. The possible options are start, end or none.
The next code sample demonstrates how to configure the component's button to go on the right side.
The Ignite UI for Blazor Expansion Panel keyboard navigation is compliant with W3C accessibility standards and convenient to use.
- Alt + Arrow Down - expands the focused panel
- Alt + Arrow Up - collapses the focused panel
- Space/Enter - toggle the expansion state of the focused panel
The Ignite UI for Blazor Expansion Panel component exposes several CSS parts (
content) to give you full control over its styling.