1.3.8 • Published 1 year ago

@imadys/button v1.3.8

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Button component

  • Tailwindcss is required
  • if you are using vite you can use this example here
  • live preview
The styles in requered.css file is required .. you will need to copy it and paste it into your tailwind css file
To install the package

npm install @imadys/button

Usage

import Button from '@imadys/button'

Colors

  • primary
  • secondary
  • info
  • warning
  • danger

<Button color="primary">Primary</Button>

sizes

  • xs
  • sm
  • md
  • lg
  • xl

<Button color="primary" size="md">Primary</Button>

to add radius

<Button color="primary" size="md" rounded={true}>Primary</Button>

to make the button outlined

<Button color="primary" size="md" outline={true}>Primary</Button>

to make the button disabled

<Button color="primary" size="md" disabled={true}>Primary</Button>

to make event on click

<Button click={() => { alert('its working!') }} color="danger" size="lg">Button with event</Button>

to add icon

<Button setIcon={{ icon: <FontAwesomeIcon icon={faBell} />, direction: 'right' }}>Button with event</Button>

1.2.0

1 year ago

1.3.7

1 year ago

1.1.9

1 year ago

1.3.6

1 year ago

1.1.8

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.3.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.9.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago