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

Usage

vue

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

Props

For ERibbon component, the following props are available:

PropTypeDefaultNote
roundedBooleanfalseApplies full rounded style.
squareBooleanfalseRemoves rounded corners of the element.
variantString"default"The ERibbon element can be displayed in many ways: default, slide, folded ,header,footer, gradient, bookmark ,vertical. Demo Here
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.

Slots

The ERibbon component provides following slots that enable you to customize the content.

SlotDescription
elementThe slot used for the ribbon's element.
contentThe slot used for the ribbon's content.

COPYRIGHT