1.0.2 • Published 1 year ago

@priyanka_pal/react-easybutton v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-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 @priyanka_pal/react-easybutton

Then use it in your app:

import React from 'react';
import { EasyButton } from "@priyanka_pal/react-easybutton";

export default function App() {

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

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