@govuk-frederic/open-button

Uses Arrow icon and manage-state to create a button which toggles rotation when clicked and can accept an event handler.

Stats

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

Readme

OpenButton

Import

  import OpenButton from '@govuk-frederic/open-button';

Usage

Simple

import manageState from 'manage-state';

const ManagedOpenButton = manageState(OpenButton, { propsToState: ['open']});

<ManagedOpenButton />

Properties

Prop Required Default Type Description
onChange `````` func
open `````` bool

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.