generic-disclosure

WAI ARIA Practices

A disclosure is a button that controls visibility of a section of content.

API:

name detail
opened-changed boolean
name type
expanded boolean
name type
expanded boolean
name description
toggle Provide a button element as lightdom
detail Provide a content node as lightdom

Usage:

The disclosure component requires a button child with a slot="toggle" for the trigger, and a generic content node slot="detail" for the content.

Default:

Show code

i am content

Expanded:

Show code

i am expanded!