react-button React component


001.0.183 years ago3 years agoMinified + gzip package size for @crpt/react-button in KB



Travis npm package Coveralls

Button component.


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" />

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.