@comparaonline/ui-offer-badge

yarn add @comparaonline/ui-offer-badge

Usage no npm install needed!

<script type="module">
  import comparaonlineUiOfferBadge from 'https://cdn.skypack.dev/@comparaonline/ui-offer-badge';
</script>

README

@comparaonline/ui-offer-badge

Installation

yarn add @comparaonline/ui-offer-badge

Usage

This package will show details of each offer that is passing down to the component.

<OfferBadge color="cerise" label="badge" description="tooltip badge" />

Props

This components is composed by some properties that are listed below.

Prop Name Description Default Value Expected Type Value
color color of the badge null LabelColors: 'light-gray', 'copper', 'eminence', 'jade', 'cerise'
label the color of the badge null string
description the color of the badge null string