Back to Components
Components

Chart Container

Wrapper component with title, subtitle, legend slot, and responsive chart area.

Weekly Performance

Overview of key metrics

RevenueExpenses
Chart visualization area

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/chart-container.tsx

Installation

Using shadcn CLI

npx shadcn add chart-container --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge