Back to Components
Components
Comparison Bar
Horizontal bar with two values, labels, and percentage split.
Desktop
684
Mobile
416
62%38%
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/comparison-bar.tsx
Installation
Using shadcn CLI
npx shadcn add comparison-bar --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge