1.1.7 • Published 3 years ago

react-ribbons v1.1.7

Weekly downloads
90
License
MIT
Repository
github
Last release
3 years ago

Installation

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

// Enter project folder
cd package

// NPM setup
npm install react-ribbons

// Yarn setup
yarn add react-ribbons

Example usage

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

const MyComponent = () => (
  <RibbonContainer className={style.demo}>
    <Ribbon
      side="right"
      type="edge"
      size="normal"
      backgroundColor="#cc0000"
      color="#ccffff"
      fontFamily="sans"
      withStripes
    >
      Foo bar
    </Ribbon>
    <p>
      Lorem ipsum dolor sit amet, consectetur adipiscing elit,
      sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    </p>
  </RibbonContainer>
);

export default MyComponent;
1.1.1

3 years ago

1.1.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago