ShadcnSpace

Token Usage Collapsible

Cards 5

About

An expandable usage card that shows a progress bar summary and reveals a token-usage breakdown when toggled open.

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

Code

How Token Usage Collapsible is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import TokenUsageDemo from "@/components/ui/collapsible-05";

export default function Preview() {
  return (
    <div className="flex min-h-[420px] w-full items-center justify-center p-8">
      <TokenUsageDemo />
    </div>
  );
}

Dependencies

More by ShadcnSpace

View all
  • Integration Card

    Integration Card

    1.8K
  • Stacked Card Carousel

    Stacked Card Carousel

    1.4K
  • Orbiting Circles with Globe

    Orbiting Circles with Globe

    1.4K
  • Button witn Icon

    Button witn Icon

    1.4K
  • Agency Hero Section

    Agency Hero Section

    652
  • Testimonials Marquee

    Testimonials Marquee

    572
  • Shine Border

    Shine Border

    467
  • Social Icon

    Social Icon

    447

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    39
  • Statistics Card 2

    Statistics Card 2

    261
  • Course Design Cards

    Course Design Cards

    1.1K
  • The Item one

    The Item one

    3
  • Card

    Card

    70
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    289
  • Card

    Card

    17