1.0.13 • Published 1 year ago

customize-button v1.0.13

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

Custom Button Component

A versatile React component to render buttons with multiple variations such as primary, secondary, success, warning, danger, outline, and rounded.

Installation:

npm i customize-button

Props

primary, secondary, success, warning, danger, outline, rounded: (Boolean) - Toggle different button variations.

Note:

Only one of these props should be set to true at a time. If multiple variations are provided simultaneously, an error will be thrown in the console.

Error Handling

This Custom Button component utilizes prop validation to ensure that only one variation can be applied at a time. If more than one variation is selected simultaneously (true), an error will be logged in the console:

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

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.5

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