Skip to content

ShahriyarP/react-button-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

A useful library for using buttons in react

Installing

npm i button-react-shahriarp

Or

https://www.npmjs.com/package/button-react-shahriarp

Usage

In a React app, use the Button components: import { Button } from 'button-react-shahriarp'

Button props

Name Description
btnColor 'purple'
type 'button'
name string
value string
disabled Boolean
onClick function

In addition, you can use bgColor below 👇🏻👇🏻

| 'purple' | 'yellow' | 'deeporange' | 'orange' | ' green' | ' cyan' | ' black'