mtvk-button-react
v1.0.6
Published
Easy to use versatile buttons in Reactjs!
Downloads
2
Maintainers
Readme
Button Component Package For React
Easy to use versatile buttons!
Easy to use versatile buttons in Reactjs...
Installation
npm i mtvk-button-react
USE Button Package
import React from "react";
import Button from 'mtvk-button-react'
function App() {
return (
<div>
<h1>This is a test</h1>
<Button variant="secondary" size="md" label="ثبت نام" />
</div>
);
}
Props
| props | defaultValue | description | | -------- | ------------ | -------------------------------------------------------- | | variant | null | select (primary or secondary or deactivate or null) | | size | null | select (lg or md or sm or null) | | label | null | select (optional string) | | onClick | null | select (optional function) |
License
MIT
Author
Mina Tavakoli