Back to Components
Components

Price Tag

Price display with currency symbol, strikethrough for discounts, and optional sale badge.

$48.00
$64.00$92.00
Sale$128.00$160.00

Dependencies

  • clsx
  • tailwind-merge
  • class-variance-authority

Files

  • components/ui/price-tag.tsx

Installation

Using shadcn CLI

npx shadcn add price-tag --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge class-variance-authority