This widget uses the native <details> element to reveal additional information when the summary is expanded. The class name details allows for custom styling while retaining built-in accessibility.
This widget uses the native <details> element to reveal additional information when the summary is expanded. The class name details allows for custom styling while retaining built-in accessibility.
Expanding the section reveals content placed inside, while collapsing it hides the content.
The <details> element provides semantic markup for disclosure widgets and handles accessibility features automatically.