customize-button

1.0.13 • Public • Published

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:

/customize-button/

    Package Sidebar

    Install

    npm i customize-button

    Weekly Downloads

    3

    Version

    1.0.13

    License

    ISC

    Unpacked Size

    9.85 kB

    Total Files

    11

    Last publish

    Collaborators

    • amitspanidea