If you answer yes, we store and analyse information that helps us improve the website. You can change your choice at any time at the bottom of the page. More about what we store and why.

We also store necessary information that cannot be opted out of. This makes the website work and keeps it secure.

Skip to main content

What are you looking for?

Try searching for…

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.
Edit this page on github.com (opens in a new tab)