About
Two-card app starter launcher with framed icon badges, fading corner grid textures, and clickable template selection.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Starter Template Cards to your project and fits it to your theme.
Code
How Starter Template Cards is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { useEffect } from "react";
import { StarterTemplateCards } from "@/components/ui/starter-template-cards";
const PROFILE_REFERRAL_URL = "https://21st.dev/@wrapcoders?ref=mdruhulhasan";
const settings = {
firstTitle: "Text or image app",
secondTitle: "Chat assistant",
buttonLabel: "Create new",
defaultSelectedId: "",
showFooterCredit: true,
};
export default function StarterTemplateCardsDemo(
props: Partial<typeof settings>
) {
const s = { ...settings, ...props };
useEffect(() => {
if (typeof window === "undefined") return;
const themeParam = new URLSearchParams(window.location.search).get("theme");
if (themeParam === "dark") {
document.documentElement.classList.add("dark");
} else if (themeParam === "light") {
document.documentElement.classList.remove("dark");
}
}, []);
const templates = [
{
id: "text-image-app",
title: s.firstTitle,
buttonLabel: s.buttonLabel,
iconType: "document" as const,
},
{
id: "chat-assistant",
title: s.secondTitle,
buttonLabel: s.buttonLabel,
iconType: "chat" as const,
},
];
return (
<div className="flex min-h-screen w-full flex-col items-center justify-center bg-background text-foreground">
<StarterTemplateCards
templates={templates}
defaultSelectedId={s.defaultSelectedId || undefined}
/>
{s.showFooterCredit && (
<footer className="pb-10 text-center">
<a
href={PROFILE_REFERRAL_URL}
target="_blank"
rel="noopener noreferrer"
className="rounded-sm text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
>
More by @wrapcoders
</a>
</footer>
)}
</div>
);
}
















