@govuk-react/hidden-text

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

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@govuk-react/hidden-text
Minified + gzip package size for @govuk-react/hidden-text in KB

Readme

HiddenText

Import

  import HiddenText from '@govuk-react/hidden-text';

Usage

Simple

import Paragraph from '@govuk-react/paragraph';

<HiddenText summaryText={'Help with nationality'}>
  <Paragraph mb={0}>I am a paragraph. Please read me.</Paragraph>
</HiddenText>

References

Properties

Prop Required Default Type Description
children undefined node The nodes that will be displayed within the InsetText component
summaryText true `````` string Text for the summary button link e.g. Help with nationality

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.