1.0.6 • Published 7 years ago

@coop/component-standard-button v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

DEPRECATED - Coop Standard Button

React component

Standard button component with Coop styling.

Install:

  npm i @coop/component-standard-button --save

Use with React:

  import StandardButton from '@coop/component-standard-button'
  import '@coop/component-standard-button/styles.css'

  <StandardButton type="secondary" onClick={() => {}}>
    My button
  </StandardButton>

Props

PropertyPropTypeRequiredDefault ValueOptions
childrennodetrue--
typestringfalseprimaryprimary, secondary, white-transparent
onClickfunctionfalse-

CSS

Use outside React with the following classes:

  @import '~@coop/component-standard-button/styles.css';
  <div class='coop-standard-button coop-standard-button--secondary'>
    My button
  </div>

Part of Coop Trolley

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago