Price Label

Installation

Run the following command

npx vibes@latest add price-label

Usage

import { PriceLabel } from '@/vibes/soul/primitives/price-label';function Usage() {  return (      <PriceLabel price="100" />  );}

API Reference

PriceLabelProps

PropTypeDefault
className
string
colorScheme
'light' | 'dark'
'light'
price*
string | PriceRange | PriceSale

PriceRange

PropTypeDefault
type*
'range'
minValue*
string
maxValue*
string

PriceSale

PropTypeDefault
type*
'sale'
previousValue*
string
currentValue*
string

CSS Variables

This component supports various CSS variables for theming. Here's a comprehensive list.

:root {  --price-light-text: var(--foreground);  --price-light-sale-text: var(--foreground);  --price-dark-text: var(--background);  --price-dark-sale-text: var(--background);}