darshan-rajadhyaksha

Card Footer

Buttons

About

A footer container for a card layout that holds action buttons or supplementary content below a card's body, ported from the RockSolid Solid.js component library.

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

Code

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

Usage.tsx

import CardFooter from "@/components/ui/card-footer";

export default function CardFooterDemo() {
  return (
    <div className="w-full max-w-sm rounded-lg border border-border bg-card text-card-foreground shadow-sm">
      <div className="p-4">
        <h3 className="text-lg font-semibold">Upgrade to Pro</h3>
        <p className="text-sm text-muted-foreground mt-1">
          Unlock advanced features and priority support for your team.
        </p>
      </div>
      <CardFooter>
        <button className="inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90">
          Upgrade
        </button>
        <button className="inline-flex items-center justify-center rounded-md border border-input px-4 py-2 text-sm font-medium hover:bg-accent">
          Dismiss
        </button>
      </CardFooter>
    </div>
  );
}

Dependencies

More by darshan-rajadhyaksha

View all
  • Switch

    Switch

    2
  • Backdrop

    Backdrop

    1
  • Avatar

    Avatar

  • Chip

    Chip

  • Progress Bar

    Progress Bar

  • Accessible Dialog

    Accessible Dialog

  • Input

    Input

  • Card Content

    Card Content

More in Buttons

View all
  • Button

    Button

    1
  • Texture Button

    Texture Button

    97
  • Eclipse Button

    Eclipse Button

    39
  • App Store Button

    App Store Button

    458
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Button

    Button

    4
  • Button

    Button

    65
  • Button

    Button

    68