Components
Details
Details is a collapsible component that allows the user to show or hide content.
Keyboard navigation
Keyboard navigation is handled by Designsystemet. Note that if you use event.preventDefault() on a keypress event, you prevent the browser's default behaviour. In that case, you need to test keyboard navigation yourself.
Handled by Designsystemet
- The component uses native
<details>and<summary>, so the open and closed state is communicated to assistive technology.