1.0.6 • Published 5 years ago

@coop/component-standard-button v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago