react-ribbons-dm

1.0.7 • Public • Published

React Ribbons

React Ribbons

A React NPM package with a lot of fancy and easy to use ribbons components.

Documentation

Installation

To install the package tou can use NPM or Yarn and run the following command

// NPM setup
npm install react-ribbons
// Yarn setup
yarn add react-ribbons

Example usage

import { RibbonContainer,  RightCornerRibbon } from "react-ribbons";

const MyComponent = () => (
    <RibbonContainer className="custom-class">
        <RightCornerRibbon backgroundColor="#0088ff" color="#f0f0f0" fontFamily="Arial">
            Foo Bar
        </RightCornerRibbon>
        Lorem ipsum...
    </RibbonContainer>
);

export default MyComponent;

Package Sidebar

Install

npm i react-ribbons-dm

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

5.54 kB

Total Files

5

Last publish

Collaborators

  • biyixiang