@govuk-frederic/distraction-free

Provides border, arrow-left button and body area for document display.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-frederic/distraction-free
0.2.03 years ago3 years agoMinified + gzip package size for @govuk-frederic/distraction-free in KB

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

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.