@crpt/react-button

1.0.18 • Public • Published

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: Function Callback for click event. <Button onClick={e => console.log('clicked!')} />
theme: Object Theme object, can be found in themes directory. <Button theme={themes.filledTheme} />
disabled: Boolean Disables the button. <Button disabled />
size: String Button size, all sizes can be found SIZES. <Button size={SIZES.large} />
link: Boolean If true, the button becomes a link with href and target attributes. <Button link href="https://google.com/" target="_blank" />

Readme

Keywords

Package Sidebar

Install

npm i @crpt/react-button

Weekly Downloads

0

Version

1.0.18

License

MIT

Unpacked Size

84 kB

Total Files

42

Last publish

Collaborators

  • ivanvlado
  • solnik
  • fantik217