Expand / Collapse Widget Demo

Example 1: Accessible custom widget

This is a collapsible section. It uses a simple button to toggle visibility of its content. Content will be revealed when expanded and hidden when collapsed.

  • Item A
  • Item B
  • Item C

Example 2: Pre-expanded content

This example starts with the content expanded. The same button pattern toggles its visibility.

Custom styling and transitions are applied via CSS.