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

Interactive card

Title, description, optional badge, custom content and an action button.

Preview

Version
Preview theme color
More themes

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

Starter kit
Popular
Everything you need to launch, in one card.

Put any content here: a list, an image or a form.

Starter kit
Popular
Everything you need to launch, in one card.

Put any content here: a list, an image or a form.

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 { InteractiveCard } from "@/components/custom/interactive-card";

<InteractiveCard
  title="Starter kit"
  description="Everything you need to launch."
  badge="Popular"
  actionText="Open"
>
  <p>Any content goes here.</p>
</InteractiveCard>
import { InteractiveCardMotion } from "@/components/custom/interactive-card/interactive-card-motion";

<InteractiveCardMotion {...props} />

Props

PropTypeDefaultDescription
title* (required)string–Card title.
description* (required)string–Line under the title.
childrenReactNode–Custom content in the card body.
badgestring–Optional badge text.
badgeVariant"default" | "secondary" | "destructive" | "outline""default"Badge style.
actionTextstring–Button text; no button when omitted.
onAction() => void–Called when the button is clicked. Needs a client component parent.
hoverEffectbooleantrueLift the card on hover.
...propsReact.ComponentProps<"div">–Any other div attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
title* (required)string–Card title.
description* (required)string–Line under the title.
childrenReactNode–Custom content in the card body.
badgestring–Optional badge text.
badgeVariant"default" | "secondary" | "destructive" | "outline""default"Badge style.
actionTextstring–Button text; no button when omitted.
onAction() => void–Called when the button is clicked. Needs a client component parent.
hoverEffectbooleantrueLift the card on hover.
...propsReact.ComponentProps<"div">–Any other div attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • The action button is described by the card title, so “Open” is announced with its context.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.