JSPM

buttons-package-ankitkicode

1.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 6
    • Score
      100M100P100Q24498F
    • License LICENSE

    A customizable button with CSS animations, created using CSS-in-JS.

    Package Exports

    • buttons-package-ankitkicode
    • buttons-package-ankitkicode/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (buttons-package-ankitkicode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    buttons-package-ankitkicode

    npm version

    A customizable button with CSS animations, created using CSS-in-JS.

    Installation

    To install the package, run:

    npm install buttons-package-ankitkicode

    Usage

    Here's how to use the Button component in a React project:

    1. Import the Button Component

    Import the Button component from the package:

    import Button from 'buttons-package-ankitkicode';
    1. Use the Button Component

    Use the Button component in your React JSX. Customize the button's text and animation speed via props:

    import Button from 'buttons-package-ankitkicode';
    
    const App = () => {
        return (
            <div>
                <Button text="Go" speed={1000} />
            </div>
        );
    };

    Props

    The Button component accepts the following props:

    --text (string): The text to display inside the button. Required. --speed (number): The speed of the progress animation in milliseconds. Required.

    License

    This package is licensed under the ISC License. See the LICENSE file for more details

    Author

    Ankit Jatav Feel free to reach out if you have any questions or need further assistance!