JSPM

@mayank1513/fork-me-react

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 90
  • Score
    100M100P100Q82963F
  • License MIT

An intuitive React.js fork me ribbon component for promoting open source project forks.

Package Exports

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

    Readme

    Fork Me React.js component Version Downloads Unit Tests npm bundle size

    A simple fork me component for React.js projects!

    Install

    $ pnpm add @mayank1513/fork-me-react
    # or
    $ npm install @mayank1513/fork-me-react
    # or
    $ yan add @mayank1513/fork-me-react

    Add on your page

    <ForkMe href="https://github.com/mayank1513/turbo-template" />

    Optional parameters

        text?: string; // replace the Fork me on GitHub text
        width?: string | number; // if you need to adjust the width of the ribbon (length)
        height?: string | number; // to adjust height of the ribbon
        bgColor?: string; // background color
        textColor?: string; // text color

    This package also serves as an example to demonstrate how to build and publish React.js library compatible with React Server Components