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 |