Socket
Book a DemoInstallSign in
Socket

@slice-and-dice/govuk-react-details

Package Overview
Dependencies
Maintainers
8
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slice-and-dice/govuk-react-details

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

0.7.1
latest
npmnpm
Version published
Maintainers
8
Created
Source

Details

Import

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

Usage

Simple

<Details summary="Help with nationality">
  I am a paragraph of hidden details, to be revealed when summary is clicked
</Details>

References

  • https://design-system.service.gov.uk/components/details/
  • https://github.com/alphagov/govuk-frontend/blob/master/src/components/details/_details.scss

Properties

PropRequiredDefaultTypeDescription
childrenundefinednodeThe content that will be displayed when details are revealed
openfalseboolFlag to indicate whether to show component open by default
summarytrue``````nodeText for the details summary link e.g. Help with nationality

FAQs

Package last updated on 10 Mar 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.