0.1.5 • Published 2 years ago

@flexcodelabs/button v0.1.5

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

@flexcodelabs/button

npm NPM

Features

  • Loader
  • Disabled
  • Icon or Text or Both
  • can be used as link

Installation

npm install @flexcodelabs/button

or

yarn add @flexcodelabs/button

Usage

import Button from "@flexcodelabs/button";

<Button
  label="Button"
  style={{
    padding: 10,
    background: "black",
  }}
/>;

Examples

Source code

Props

NameTypeDefaultRequiredDescription
labelReactNode or string | false | Button content
styleCSSProperties | false | Custome styles
classNamestring | false | Custom classname
rippleboolean | false | Whether to add ripple effect on button click
disabledboolean | false | Button disabled status
typebutton or submit or reset or undefined | false
hrefstring | false | destination for next projects
tostring | false | destination for react router dom
Linkany | false | can be Link from react router or next/link
loadingboolean | false | buttonloading status
0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago