eleoptics

Plot Card

Cards

About

A card frame for a data plot or chart with a title, metadata, color-key, header actions, loading/empty/error/stale states, and an optional footer for a legend. Ported to React from the Svelte PlotCard component in ELE Optics' eleo-ui.

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

Code

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

Usage.tsx

import PlotCard from "@/components/ui/plot-card";

export default function PlotCardLoadingDemo() {
  return (
    <div className="eleo" style={{ width: 360 }}>
      <PlotCard
        title="Spot diagram"
        meta="0.0°"
        state="loading"
        message="Tracing rays…"
      />
    </div>
  );
}

More by eleoptics

View all
  • Spot Diagram

    Spot Diagram

  • Colorbar

    Colorbar

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Card

    Card

  • Photo Deck

    Photo Deck

    42
  • Statistics Card 10

    Statistics Card 10

    301
  • Approval Card

    Approval Card

    33
  • Statistics Card 2

    Statistics Card 2

    309
  • Card with Ellipsis Pattern

    Card with Ellipsis Pattern

    36
  • Statistics Card 7

    Statistics Card 7

    334