price

Price

Shows a price in the shopper's locale, with the original price and the percentage saved when it is reduced, and a hint such as tax and shipping.

Parts

PartFileDoes
PricePrice.vueShows a price, with the original price and discount percentage when reduced.
PriceAmountPriceAmount.vueShows the current price of the product.
PriceRefPriceRef.vueShows the original price of a discounted product.
PriceDiscountPriceDiscount.vueShows the percentage saved against the original price.
PriceHintPriceHint.vueHolds a note below the price, such as tax and shipping, which may link on.

Anatomy

<Price>
  <PriceDiscount />
  <PriceRef />
  <PriceAmount />
  <PriceHint />
</Price>

Styling

All of Price’s styles live in price.json. New to styling in Frontic UI? How styling works →

Install

Installs with it
badge
format
npm packages
class-variance-authority
reka-ui

Built from

API reference

Price.vue

Shows a price, with the original price and discount percentage when reduced. Renders a <span>.

Props 10

PropTypeDefault
classClassValue—
sizePriceSize'md'
alignPriceAlign'start'
price*PriceType—
localestring—
showRefbooleantrue
showDiscountbooleantrue
showHintbooleantrue
refLabelstring'Was'
amountLabelstring'Now'

Slots 1

SlotSlot props
hint—

Recipe price 6 groups

Recipe price-row 1 group

PriceAmount.vue

PriceRef.vue

PriceDiscount.vue

PriceHint.vue
Price