Web Implementation Guidelines Group Component Builder Information (v3+)

Component: Accordion 1.2

This builder will allow you to generate a custom version of the Accordion component.

The component will show up in between the pink lines below. The pink lines will not show up in production -- they are only used to allow you to view margins and paddings. In the case of specialized components (things that are meant to be invisible or have a fixed location), the component may not display in this area.

Template -- enter raw HTML here

Attributes, Classes, and CSS Variables

(attribute)
Color accent used, defaults to blue
(attribute)
Width of the accordion (should it use the containing controller or break to full width)
(attribute)
Whether or not it limits the number of open items to a single item
(attribute)
Whether or not it displays buttons for expand and collapse all
Custom CSS Variables and Styles (advanced use only)
Margin of the main accordion
Accent color of the main accordion
Transform of the chevron when not expanded
Transform of the chevron when expanded
Margin of the panel
Padding of the panel content (the information below the header)
Padding of the header panel (the header section)
Margin of the entire section (including the header)
Margin of the entire section (including the header) when expanded

HTML listed here

This parent has a style of that is not figured into the source HTML. You can change this by opening the Custom CSS Variables and Styles and editing the parent style.

Details

This is an accordion where you have headers and each header can be opened to display more information.

Full Version: 1.2.1

Type: web component

Date Created: 11/14/2025

Version notes:

Github repository: https://github.com/web-illinois/ilw-accordion/

Javascript file: https://cdn.toolkit.illinois.edu/ilw-accordion/1.2/ilw-accordion.js

CSS file: https://cdn.toolkit.illinois.edu/ilw-accordion/1.2/ilw-accordion.css

JSON information: ilw-accordion.1.2.json

Web Implementation Guidelines Group Component Builder Information (v3+)

Note: this page is not using the toolkit because it is meant to test individual components in isolation.