Skip to main content

rc-accordion

Accordion coordinator for child native <details> panels with single- or multiple-open behavior, following the WAI-ARIA Accordion pattern.

Package
@rcarls/rc-accordion
Element
<rc-accordion>
Native dependency
Coordinates native details children
State model
Single or multiple open panels
Main events
None

Installation

npm install @rcarls/rc-accordion
import '@rcarls/rc-accordion/define';

Live demo

Theming

The default demo mode shows the component without a package theme. Use the shared preview controls on this page to compare inherited, light, and dark color schemes or to apply the optional Material theme only inside the demo frames.

API

Properties

PropertyMarkupTypeDefaultDescription
multipleJS property onlybooleanNot specifiedAllows more than one panel open at a time.

Methods

No public methods are documented in the custom elements manifest.

Events

No custom events are documented in the custom elements manifest.

Slots

No slots are documented in the custom elements manifest.

CSS Custom Properties

No CSS custom properties are documented in the custom elements manifest.

CSS Parts

No CSS parts are documented in the custom elements manifest.