1.0.18 • Published 5 years ago

@crpt/react-button v1.0.18

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

5 years ago

1.0.17

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago