Back to Components
Components

Price Display

Formatted price with currency symbol, strikethrough for discounts, and multiple size variants.

$29.99
$49.99$79.99
$199.00$299.00
$499.00$699.00

Dependencies

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

Files

  • components/ui/price-display.tsx

Installation

Using shadcn CLI

npx shadcn add price-display --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