0.2.0 • Published 5 years ago
@govuk-frederic/distraction-free v0.2.0
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 |