Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsCards

Blog card

Title, excerpt, author, date, read time, category and cover image in three layouts. Uses next/image.

Preview

Version
Preview theme color
More themes

Lifts on hover with a spring. With reduced motion turned on, it renders the plain layout.

Guide
Building a landing page in an afternoon
Pick the sections you need, install them with one command and spend the rest of the day on copy.
Sarah Wilson
5 min read
Guide
Building a landing page in an afternoon
Pick the sections you need, install them with one command and spend the rest of the day on copy.
Sarah Wilson
5 min read

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { BlogCard } from "@/components/custom/blog-card";

<BlogCard
  title="Building a landing page in an afternoon"
  excerpt="Pick the sections you need and install them."
  author="Sarah Wilson"
  date="2026-01-15"
  readTime="5 min read"
  category="Guide"
  image={post.coverUrl}
  href="/blog/landing-page"
/>
import { BlogCardMotion } from "@/components/custom/blog-card/blog-card-motion";

<BlogCardMotion {...props} />

Props

PropTypeDefaultDescription
title* (required)string–Post title.
excerpt* (required)string–Short summary.
author* (required)string–Author name.
date* (required)string–Publish date.
readTimestring–Such as “5 min read”.
imagestring–Cover image, rendered with next/image.
authorAvatarstring–Author image URL.
hrefstring–Where the card links to.
categorystring–Category badge text.
categoryColorstring"bg-gray-100 text-gray-800"Tailwind classes for the badge.
likesnumber–Like count.
variant"default" | "horizontal" | "minimal""default"Layout.
onClick() => void–Click handler. Needs a client component parent.
...propsReact.ComponentProps<"article">–Any other article attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
title* (required)string–Post title.
excerpt* (required)string–Short summary.
author* (required)string–Author name.
date* (required)string–Publish date.
readTimestring–Such as “5 min read”.
imagestring–Cover image, rendered with next/image.
authorAvatarstring–Author image URL.
hrefstring–Where the card links to.
categorystring–Category badge text.
categoryColorstring"bg-gray-100 text-gray-800"Tailwind classes for the badge.
likesnumber–Like count.
variant"default" | "horizontal" | "minimal""default"Layout.
onClick() => void–Click handler. Needs a client component parent.
...propsReact.ComponentProps<"article">–Any other article attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • Renders as an <article> with the date in a <time> element.
  • Like counts read as “N likes”.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.