@reaxio/button
v1.0.10
Published
Button componet for Reactjs
Readme
Button Reaxio
An Introduction
React component, easy, simple, small and improved
Why Should You Use This?
Many of the components for Reactjs are in a single installation, not only the component you need and in many cases very heavy, but this is ideal for:
- Quick and easy loading
- They don't inject extra javascript and DOM elements into your page, making it slower.
- Easy to customize enough to adapt to the design of your site.
- Reaxion Button, takes up very little space, specific and simple for your project.
- It does not load any iframes or additional javascript.
- It can be customized in any way.
📦 Install
npm i @reaxio/button
🔨 Usage
import Button from "@reaxio/button";
const onClickActiveFrom = () => {
setregisterFind(null);
setstateActiveFrom(!stateActiveForm);
};
const App = () => (
<Button typeButton="primary" onClick={onClickActiveFrom}>
Press here
</Button>
);✨ API
| Property | Description | Type | Default |
| :--------- | :--------------------------------------------------------------------------------------------------------- | :------ | :------ |
| ref | Redirect url of link button | string | |
| className | Like the target attribute of the class, it works when the css, width, height,size ... properties are specified. | string |
| disabled | Disabled state of button | boolean | false |
| typeButton | Can be set to primary , second or alert | string | primary |
|onClick|Set the handler to handle click event|jsx()=>{}||
🔺Examples
Look at our Button example in CodeSandox, easy, simple and fast !!!
Thanks for using it. 😃 👊🏼
