Details is an interactive switch for a person to expand or collapse content.
Take a look at what problems the details component solves to see if they fit the problem you're solving for.
Use the details component to give a person a summary of more detailed content you've hidden that they can choose to reveal. Use this component to:
Related components
Tabs when you want to replace the entire content of a section or a page.
Links to provide navigation to a new page, website, or section on the current page or files for download.
Buttons when a person modifies data, changes a state, or initiates a specific action.