| import { PureComponent } from 'react'; | |
| import Card from '../../card'; | |
| import Ribbon from '../index'; | |
| export default class extends PureComponent { | |
| static displayName = 'Ribbon'; | |
| render() { | |
| return ( | |
| <div> | |
| <Card> | |
| <Ribbon>Default</Ribbon> | |
| <p> | |
| Ribbon is a component you can slap on a Card or a similar container to distinguish it in | |
| some way. You can just render <b><Ribbon>Text</Ribbon></b> inside to have it | |
| marked. | |
| </p> | |
| </Card> | |
| <Card> | |
| <Ribbon>History</Ribbon> | |
| <p> | |
| 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. | |
| </p> | |
| </Card> | |
| <Card> | |
| <Ribbon color="green">Green</Ribbon> | |
| <p> | |
| 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 | |
| <b><Ribbon color="green">Green</Ribbon></b> | |
| </p> | |
| </Card> | |
| </div> | |
| ); | |
| } | |
| } | |