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

DocsCustomization

Motion

Every section works without animation. Where movement adds meaning, there is also a motion version with the same props, built on the motion package.

Plain and motion

The plain file is a server component with CSS only. The motion file, <name>-motion.tsx, is a client component that takes exactly the same props, so you can swap one for the other without touching your content. Section pages show both behind the Plain / Motion switch.

Install

Add -motion to the item name. The CLI also installs the plain version (the motion one reuses its parts) and the motion npm package.

import { HeroMotion } from "@/components/custom/hero/hero-motion";

What motion versions promise

  • Reduced motion. They call useReducedMotion(); with the setting on, they render exactly the plain layout.
  • Content is never hidden. Text and images are in the server HTML and visible before JavaScript runs. Animation starts only after mount.
  • A pause button. Anything that moves for more than five seconds, such as a marquee or a looping beam, has a visible pause control.
  • Cheap properties. They animate transform, opacity, filter, clip-path and shadows only, so layout never shifts.
  • One tree. The server and the browser render the same markup; motion switches on after hydration instead of swapping in a different component.

Using motion sections from a server page

Props passed from a server component to a client component must be serializable. Pass icons as elements, not as component references:

// Works
icon: <Zap aria-hidden="true" />

// Fails: a function can't cross to the client
icon: Zap

The rules come from the contributing guide, which every new section follows.