# Details
## Introduction
Component for conditionally revealing content, using the details HTML element.
## Guidance
Find out when to use the details component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/details).
## Quick start examples
### Details
[Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/details/preview)
#### Markup
Help with nationality
Help with nationality
Where to find your National Insurance Number
Name | Type | Required | Description |
---|---|---|---|
summaryText (or) summaryHtml | string | Yes | Text or HTML to use within the summary element (the visible part of the details element). If `summaryHtml` is provided, the `summaryText` argument will be ignored. |
text (or) html | string | Yes | Text or HTML to use within the disclosed part of the details element. If `html` is provided, the `text` argument will be ignored. |
id | string | No | Optional id to add to the details element. |
open | boolean | No | If true, details element will be expanded. |
classes | string | No | Optional additional classes to add to the details element. |
attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the details element. |