darshan-rajadhyaksha

Card Title

Cards

About

A styled heading element used inside a card header to display the card's primary title, ported from RockSolid UI (SolidJS) to React, by Darshan Rajadhyaksha.

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

Code

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

Usage.tsx

import CardTitle from "@/components/ui/card-title";

export default function CardTitleDemo() {
  return (
    <div className="w-full max-w-sm rounded-lg border border-neutral-200 bg-white p-6 shadow-sm dark:border-neutral-800 dark:bg-neutral-950">
      <div className="flex flex-col gap-1.5">
        <CardTitle>Project overview</CardTitle>
        <p className="text-sm text-neutral-600 dark:text-neutral-300">
          Track your project progress.
        </p>
      </div>
      <div className="mt-4 text-sm text-neutral-800 dark:text-neutral-200">
        Your project is currently on track and all milestones are progressing as
        expected.
      </div>
      <div className="mt-6">
        <button
          type="button"
          className="inline-flex items-center justify-center rounded-md bg-neutral-900 px-4 py-2 text-sm font-medium text-neutral-50 hover:bg-neutral-800 dark:bg-neutral-100 dark:text-neutral-950 dark:hover:bg-neutral-200"
        >
          View project
        </button>
      </div>
    </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 Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    273
  • Statistics Card 7

    Statistics Card 7

    301
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    184
  • Stats cards with links

    Stats cards with links

    82
  • Weather Card

    Weather Card

    57
  • Card Studio

    Card Studio

    9