Accordion Styling
Style Variants
Accordion supports the following style variants. Variants must be applied to individual panels, not to the Accordion itself.
| Variant | Description | Supported by |
|---|---|---|
| Makes the panel’s boundaries visible | Aura, Lumo |
| Removes the padding from the panel content area | Aura |
| Used for compact UIs | Lumo |
| Places the toggle icon after the summary contents | Aura, Lumo |
Filled Panels
The filled style variant makes the panel’s boundaries visible. This helps tie its content together visually and distinguishes it from the surrounding UI.
Source code
AccordionFilledPanels.java
accordion-filled-panels.tsx
accordion-filled-panels.ts
Small Panels
Use the small style variant for compact UIs.
Source code
AccordionSmallPanels.java
accordion-small-panels.tsx
accordion-small-panels.ts
Style Properties
The following style properties can be used in CSS stylesheets to customize the appearance of this component.
To apply values to these properties globally in your application UI, place them in a CSS block using the html {…} selector.
See Component Style Properties for more information on style properties.
| Property | Supported by |
|---|---|
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
| Aura |
CSS Selectors
The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.
- Root element
-
vaadin-accordion