ganapativs

Delta Indicator

Component

About

An inline text indicator that shows a signed percent or value change next to a KPI, with a direction triangle and color so the change never relies on color alone.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Delta Indicator to your project and fits it to your theme.

Code

How Delta Indicator is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Delta } from "@/components/ui/delta";

export default function DeltaNegative() {
  return (
    <span className="text-lg">
      <Delta value={-0.08} title="Down is bad" />
    </span>
  );
}

More by ganapativs

View all
  • SparkBar

    SparkBar

  • Dumbbell Chart

    Dumbbell Chart

  • Calendar Strip

    Calendar Strip

  • Heat Strip

    Heat Strip