1.0.1 • Published 3 years ago

shapla-react-button v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Shapla React Button

A simple button, in different colors, sizes, and states

Table of contents

Installation

npm install --save shapla-react-button

Usage

Styles

with Sass:

import 'shapla-react-button/src/index.scss';

with CSS:

import 'shapla-react-button/dist/button.css';

Javascript Instantiation

import React from 'react';
import Button from 'shapla-react-button';
 
class MyApp extends React.Component {
  render() {
    return (
      <Button theme="primary">Click Me!</Button>
    );
  }
}

Props

PropertyTypeRequiredDefaultDescription
themeStringnodefaultValue can be default or primary or secondary.
sizeStringnonormalValue can be normal or small or medium or large.
fullwidthBooleannofalseIf set true, button will take full width.
disabledBooleannofalseIf set true, disabled attribute will be added.
outlineBooleannofalseIf set true, outline style will be used.
roundedBooleannofalseIf set true, rounded style will be used.
fabBooleannofalseIf set true, circle style will be used.
shadowBooleannofalseIf set true, box-shadow will be added around button.
1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.1

3 years ago