0.1.4 • Published 2 years ago

@dozee-studio/react-library-public-button v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

NameDescription
kind'Primary''Outline''Inline''Ghost'' Warning'
data-idstring
type'button''submit''reset'
namestring
valuestring
disabledBoolean
onClickfunction

Badge props

NameDescription
valueinteger