import { PureComponent } from 'react'; import Card from '../../card'; import Ribbon from '../index'; export default class extends PureComponent { static displayName = 'Ribbon'; render() { return (
Ribbon is a component you can slap on a Card or a similar container to distinguish it in some way. You can just render <Ribbon>Text</Ribbon> inside to have it marked.
Ribbons came to us in the early 2010s when they were put on every container on the web. Since then, the internet’s love for ribbons have subsided, but they will always find a place in our hearts.
There are additional color versions. You can change them by passing color prop. The ribbon you can see on the right side is rendered by <Ribbon color="green">Green</Ribbon>