JSPM

demo_button_component

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q17080F
    • License ISC

    Demo component for article

    Package Exports

    • demo_button_component

    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 (demo_button_component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Demo Button Component

    This is a demo button package to explain how to create and publish components to NPM

    Installation

    npm install --save demo_button_component

    Usage

    import {BasicButton, OutlineButton} from 'demo_button_component';
    <BasicButton  buttonSize = "btn--wide" buttonColor = "red">Hello, User</BasicButton>
    <OutlineButton  buttonSize = "btn--wide" buttonBorderColor = "red-border">Hello, User</OutlineButton>

    Build and Publish Multiple React Components to NPM

    Check out the article here