Lab

Disclosure

Slant / Controls

Questions that open to their answers, one at a time or several.

The theme follows the link: share a page with ?theme=moon.

Usage

  • Each heading is a button with aria-expanded and aria-controls pointing at its panel.

Keyboard

Tabmoves between questions
Enter / Spaceopens or closes the focused answer

Accessibility

  • The expanded state is exposed on the button, not inferred from the chevron.

Disclosure in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.