0.2.1 • Published 3 years ago

react-simple-easy-button v0.2.1

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

react-simple-easy-button

A simple react button component which can be use to add anywhere in react application without investing on styling.

Installation and usage

To use this module, install it:

npm i react-simple-easy-button

Then use it in your app:

import React from 'react';
import SimpleButton from "react-simple-easy-button";

export default function App() {

  return (
      <SimpleButton>Your button content</SimpleButton>
  );
}

Props

PropsDescriptionValueDefault valueIs required
typetype of buttonsubmit or buttonsubmitfalse
colorcolor of the buttonprimary,secondary,success,warning,dangerprimaryfalse
outlinedmake outline buttontrue or falsefalsefalse
flatadd button shadowtrue or falsetruefalse