Skip to content

Collapse

Stows content in collapsible panels to keep the focus on key information.

Basic Usage

Multiple panels open at once

Includes basic info such as team, milestones, and budget.

The component library is built on Web Components standards.

Iterates by version, running the engineering discipline checklist before each release.

active controls the set of expanded panels (name values comma-separated); by default multiple panels can be open at the same time.

Accordion

Accordion mode

Only one panel can be open at a time.

Opening a new panel automatically collapses the previous one.

Clicking an already-open panel collapses it.

All Collapsed

All collapsed by default

All panels are collapsed by default.

Click the header to expand.

Events

Expansion state events

Content 1

Content 2

Currently open: a

API

oas-collapse

AttributeDescriptionTypeDefault
accordionAccordion mode; only one panel open at a timeboolean
activeSet of expanded panel name values (comma-separated)string
EventDescription
oas-changeExpansion state change, detail: { active: string[] }
NameDescription
default

oas-collapse-item

AttributeDescriptionTypeDefault
headerPanel titlestring
nameUnique identifier of the panel
openWhether it is expanded (managed by the container)
EventDescription
oas-collapse-item-click
NameDescription
default