Skip to main content

Ribbon

v.5.0.0

Installation

yarn add @mercell/ribbon-react

Usage

Using the Ribbon component is as simple as importing it like this.

import { Ribbon } from '@mercell/ribbon-react';
Live Editor
Result

Types, definitions, etc.

RibbonProps
JSX.IntrinsicElements['div'] & { scheme: FunctionScheme };

type FunctionScheme<T = ''> =
| 'information'
| 'success'
| 'error'
| 'important'
| 'default'
| T;
NameTypeDefaultRequiredDescription
schemestring-yesUsed to select the color of the ribbon. Important, Success, Error or Information