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

DocsCompany

Blog grid

A grid of recent posts built from the blog card, with a view-all link.

Preview

Version
Preview theme color
More themes

Cards rise in one after another as the grid scrolls into view. With reduced motion turned on, it renders the plain layout.

From the blog

Sample posts.

All posts

From the blog

Sample posts.

All posts

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 { BlogGrid } from "@/components/custom/blog-grid";

<BlogGrid
  title="From the blog"
  posts={posts}
  viewAll={{ label: "All posts", href: "/blog" }}
/>
import { BlogGridMotion } from "@/components/custom/blog-grid/blog-grid-motion";

<BlogGridMotion posts={posts} />

Props

PropTypeDefaultDescription
posts* (required)BlogCard props[]–title, excerpt, author, date, href, image?, readTime?, category?
viewAll{ label; href }–Link to the full blog.
title / descriptionstring–Heading (h2) and line under it.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
posts* (required)BlogCard props[]–title, excerpt, author, date, href, image?, readTime?, category?
viewAll{ label; href }–Link to the full blog.
title / descriptionstring–Heading (h2) and line under it.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • Each post is an article from BlogCard.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.