Socket
Book a DemoInstallSign in
Socket

@govuk-react/details

Package Overview
Dependencies
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/details

Renders a styled details element along with summary from prop and children rendered as contents.

latest
npmnpm
Version
0.10.7
Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

Details

Import

  import Details from '@govuk-react/details';

Make a page easier to scan by letting users reveal more detailed information only if they need it.

  • https://govuk-react.github.io/govuk-react/?path=/docs/details
  • https://design-system.service.gov.uk/components/details/

Properties

PropRequiredDefaultTypeDescription
childrenundefinedReactNodeThe content that will be displayed when details are revealed
openundefinedbooleanFlag to indicate whether to show component open by default
summarytrueReactNodeText for the details summary link e.g. Help with nationality

FAQs

Package last updated on 13 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts