0.1.4 • Published 4 years ago
@dozee-studio/react-library-public-button v0.1.4
Functional npm package on reusable buttons
Install
npm install @dozee-studio/react-library-public-button
Usage
In a React app, use the Button or Badge or custom hook components:import { Badge } from "@dozee-studio/react-library-public-button";
import { Button } from "@dozee-studio/react-library-public-button";
import { useFetch } from "@dozee-studio/react-library-public-button";
Button props
| Name | Description | ||||
|---|---|---|---|---|---|
| kind | 'Primary' | 'Outline' | 'Inline' | 'Ghost' | ' Warning' |
| data-id | string | ||||
| type | 'button' | 'submit' | 'reset' | ||
| name | string | ||||
| value | string | ||||
| disabled | Boolean | ||||
| onClick | function |
Badge props
| Name | Description |
|---|---|
| value | integer |