npm.io
0.5.1 • Published 7 years ago

@govuk-react/hidden-text

Licence
MIT
Version
0.5.1
Deps
5
Size
50 kB
Vulns
0
Weekly
0

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