Skip to content

Ribbon

ERibbon Ribbon is a custom micro-element that can be applied to specific elements such as cards or images to provide fixed information. Demo Here

Import

jsx
import ERibbon from "@components/Elements/ERibbon";

Usage

jsx
<ERibbon content="Out of Stock" position="top-right">
    <img src="/shoes.jpg" alt="Nike Air Max 270 Men's Shoes"/>
</ERibbon>

Props

For ERibbon component, the following props are available:

PropTypeDefaultNote
contentnode-The ribbon's content.
roundedBooleanfalseApplies full rounded style.
squareBooleanfalseRemoves rounded corners of the element.
classNameString-Overrides or extends the component's wrapper styles.
variantString"default"The ERibbon element can be displayed in many ways: default, slide, folded ,header,footer, gradient, bookmark ,vertical.
colorString"primary"The given color is applied to the ribbon - utility colors are supported (e.g primary or danger). you'll find a list of built-in classes on the src/styles/_vars.scsspage.
iconObject-By using icon prop the slide ribbon element will be visualized with an Icon.More Info about icons here.
positionStringtop-rightThe position prop allows the ribbon to be position relative to the activator.The element can appear from the top-right, bottom-right,top-left or bottom-left edge of the parent.

Children

The ERibbon component provides a children props that enable you to indicate a ribbon on a certain element.

ChildrenDescription
✔️Ribbon's element.

COPYRIGHT