ganapativs

Trend Arrow

Text

About

A tiny SVG direction glyph (up/down/flat arrow) for showing whether a metric moved, with an optional noise-floor band and formatted value label for table cells and dashboards.

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

Code

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

Usage.tsx

import { TrendArrow } from "@/components/ui/trend-arrow";

export default function TrendArrowInlineDemo() {
  return (
    <div className="flex min-h-32 items-center justify-center text-base">
      {/* size the glyph in em so it rides the surrounding type */}
      <span>
        Errors{" "}
        <TrendArrow
          value={0.4}
          positive="down"
          style={{ width: "1em", height: "1em" }}
        />
      </span>
    </div>
  );
}

More by ganapativs

View all
  • SparkBar

    SparkBar

  • Delta Indicator

    Delta Indicator

  • Dumbbell Chart

    Dumbbell Chart

  • Calendar Strip

    Calendar Strip

  • Rate Volume Chart

    Rate Volume Chart

  • Activity Grid

    Activity Grid

  • Heat Strip

    Heat Strip

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    134
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    9
  • Text Reveal

    Text Reveal

    31
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Split text

    Split text

    78
  • Scroll Fill Headline

    Scroll Fill Headline

    42
  • Shine Border

    Shine Border

    1K
  • Motion Blur Text

    Motion Blur Text

    47