cardsIntermediate
Stats-Inside Card
A card with embedded stats and a CTA — for case-study summaries.
Claude prompt
Drop this into Claude Code, claude.ai, or your AI tool of choice to regenerate or remix this component from scratch.
Build a card that embeds stats with Tailwind: a heading at the top, then a row of 2-3 mini-stats (big number + small label), then a CTA button at the bottom. Used to summarize a customer case study or product impact.
Code
html
<!--
Source: Mark Mead (HyperUI)
https://github.com/markmead/hyperui/blob/d09f638255d00e91e95f3cabea4f1d385356dd70/public/examples/marketing/cards/5.html
License: MIT
Surfaced via https://vibedex-ryan-staxs-projects-fb4e0931.vercel.app/components/hyperui-marketing-card-stats
-->
<div class="bg-white text-gray-900 min-h-screen flex items-center justify-center">
<div class="mx-auto max-w-md p-6 w-full">
<a href="#" class="block rounded-lg p-4 shadow-xs shadow-indigo-100">
<img
alt=""
src="https://images.unsplash.com/photo-1613545325278-f24b0cae1224?auto=format&fit=crop&q=80&w=1160"
class="h-56 w-full rounded-md object-cover"
/>
<div class="mt-2">
<dl>
<div>
<dt class="sr-only">Price</dt>
<dd class="text-sm text-gray-500">$240,000</dd>
</div>
<div>
<dt class="sr-only">Address</dt>
<dd class="font-medium">123 Wallaby Avenue, Park Road</dd>
</div>
</dl>
<div class="mt-6 flex items-center gap-8 text-xs">
<div class="sm:inline-flex sm:shrink-0 sm:items-center sm:gap-2">
<svg
class="size-4 text-indigo-700"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M8 14v3m4-3v3m4-3v3M3 21h18M3 10h18M3 7l9-4 9 4M4 10h16v11H4V10z"
/>
</svg>
<div class="mt-1.5 sm:mt-0">
<p class="text-gray-500">Parking</p>
<p class="font-medium">2 spaces</p>
</div>
</div>
<div class="sm:inline-flex sm:shrink-0 sm:items-center sm:gap-2">
<svg
class="size-4 text-indigo-700"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"
/>
</svg>
<div class="mt-1.5 sm:mt-0">
<p class="text-gray-500">Bathroom</p>
<p class="font-medium">2 rooms</p>
</div>
</div>
<div class="sm:inline-flex sm:shrink-0 sm:items-center sm:gap-2">
<svg
class="size-4 text-indigo-700"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"
/>
</svg>
<div class="mt-1.5 sm:mt-0">
<p class="text-gray-500">Bedroom</p>
<p class="font-medium">4 rooms</p>
</div>
</div>
</div>
</div>
</a>
</div>
</div>