New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-corner-ribbon

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-corner-ribbon

React Corner Ribbon Component

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
416
-72.27%
Maintainers
1
Weekly downloads
 
Created
Source

Get Started

install

$ npm install react-corner-ribbon --save

usage

import React from "react";
import CornerRibbon from "react-corner-ribbon";

class MyComponent extends React.Component {
  render() {
    return (
      <div style={{ position: "relative" }}>
        <CornerRibbon
          position="top-right" // OPTIONAL, default as "top-right"
          fontColor="#f0f0f0" // OPTIONAL, default as "#f0f0f0"
          backgroundColor="#2c7" // OPTIONAL, default as "#2c7"
          containerStyle={{}} // OPTIONAL, style of the ribbon
          style={{}} // OPTIONAL, style of ribbon content
          className="" // OPTIONAL, css class of ribbon
        >
          AUTHORIZED
        </CornerRibbon>

        <p>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
          eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut
          aliquip ex ea commodo consequat. Duis aute irure dolor in
          reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
          pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
          culpa qui officia deserunt mollit anim id est laborum.
        </p>
      </div>
    );
  }
}

Live demo

CodeSandbox Demo

react-corner-ribbon

Change log

v0.0.4(2021-05)

  • add support of props like className, style, containerStyle.

v0.0.3(2021-02)

  • Initial version

Keywords

React

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts