@govuk-frederic/distraction-free
v0.2.0
Published
Provides border, arrow-left button and body area for document display.
Readme
DistractionFree
Import
import DistractionFree from '@govuk-frederic/distraction-free';Usage
Simple
<DistractionFree onClick={(e) => {}}>
content goes here
</DistractionFree>With title
<DistractionFree arrowLeftTitle="Back to example" onClick={(e) => {}}>
content goes here
</DistractionFree>Properties
Prop | Required | Default | Type | Description
:--- | :------- | :------ | :--- | :----------
arrowLeftTitle | | | string |
`children` | | | node |
onClick | | `````` | func |
