1.0.18 • Published 6 years ago

@crpt/react-button v1.0.18

Weekly downloads
16
License
MIT
Repository
github
Last release
6 years ago

Button

Travis npm package Coveralls

Button component.

Usage

import { Button, SIZES, themes } from  "@crpt/react-button";


<Button onClick={e => console.log('clicked!')} size={SIZES.normal} />
PropNameОписаниеПример
onClick: FunctionCallback for click event.<Button onClick={e => console.log('clicked!')} />
theme: ObjectTheme object, can be found in themes directory.<Button theme={themes.filledTheme} />
disabled: BooleanDisables the button.<Button disabled />
size: StringButton size, all sizes can be found SIZES.<Button size={SIZES.large} />
link: BooleanIf true, the button becomes a link with href and target attributes.<Button link href="https://google.com/" target="_blank" />
1.0.18

6 years ago

1.0.17

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago