@coop/component-standard-button
v1.0.6
Published
Standard styled Coop Button
Downloads
15
Readme
DEPRECATED - Coop Standard Button
React component
Standard button component with Coop styling.
Install:
npm i @coop/component-standard-button --saveUse with React:
import StandardButton from '@coop/component-standard-button'
import '@coop/component-standard-button/styles.css'
<StandardButton type="secondary" onClick={() => {}}>
My button
</StandardButton>Props
| Property | PropType | Required | Default Value | Options | ------------------- | ---------------- | -------- | ------------- | ------------- | children | node | true | - | - | type | string | false | primary | primary, secondary, white-transparent | onClick | function | false | - |
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
