Install stash.ui components and configure your modern React & Next.js workspace.
Use the CLI to add components directly to your project from the terminal:
npx shadcn@latest add @stashui/componentSupported templates: nextvitestartreact-routerastro
Render it like any other React component:
import { AmbientMeshBackground } from "@/components/backgrounds/ambient-mesh-background";
export default function Page() {
return (
<main className="relative min-h-screen">
<AmbientMeshBackground />
</main>
);
}Manual installation steps to take full control of the component files:
It shows the full source code. Select your preferred flavor (TS + Tailwind CSS) in the preview panel.
Paste the component code into a new file inside your project, for example components/backgrounds/ambient-mesh-background.tsx.
Most interactive components require standard animation and utility libraries:
npm install clsx tailwind-merge framer-motion lucide-reactImport and render it directly into your page layout the same way as shown in the example above.