This is an accessible expand/collapse widget that allows users to show or hide content. It uses semantic HTML and ARIA attributes to ensure compatibility with screen readers and keyboard navigation.
FAQ Item 2
The widget uses a button with ARIA attributes to control the visibility of content in a div with the details class. Clicking the button toggles the aria-expanded state and shows/hides the content with smooth transitions.