@flexcodelabs/button
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@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

Name Type Default Required Description
label ReactNode or string `` false Button content
style CSSProperties `` false Custome styles
className string `` false Custom classname
ripple boolean `` false Whether to add ripple effect on button click
disabled boolean `` false Button disabled status
type button or submit or reset or undefined `` false
href string `` false destination for next projects
to string `` false destination for react router dom
Link any `` false can be Link from react router or next/link
loading boolean `` false buttonloading status

Readme

Keywords

none

Package Sidebar

Install

npm i @flexcodelabs/button

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

16.5 kB

Total Files

9

Last publish

Collaborators

  • neicore
  • bmsteven
  • baharajr