Install Keyframery in Vue and Nuxt
Add Keyframery's animated UI SDK components to a Vue 3 or Nuxt project with the shadcn-vue CLI. Same components, parts, motion styles and Agent view as React.
Keyframery for Vue has every component React has: the same parts with the same names, the same Tailwind classes, the same five motion styles and the same Agent view. The shadcn-vue CLI copies the files into your project, so you own the code.
Choose your setup.
Vite
Create the project
npm create vite@latest my-app -- --template vue-tsAdd Tailwind CSS and the @/ alias
npm install tailwindcss @tailwindcss/viteReplace src/style.css with @import "tailwindcss";, then add the alias to tsconfig.json and tsconfig.app.json:
{
"compilerOptions": {
"paths": { "@/*": ["./src/*"] }
}
}Leave out baseUrl: TypeScript 6 has deprecated it and the template's build stops on it. Then vite.config.ts:
import path from "node:path"
import tailwindcss from "@tailwindcss/vite"
import vue from "@vitejs/plugin-vue"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [vue(), tailwindcss()],
resolve: { alias: { "@": path.resolve(__dirname, "./src") } },
})(npm install -D @types/node gives node:path its types.)
Set up the CLI
npx shadcn-vue@latest initThis writes components.json, the colour tokens and src/lib/utils.ts. Keyframery uses the same tokens, so it matches any shadcn-vue components you add later.
Add components
npx shadcn-vue@latest add https://keyframery.com/r/vue/tabs.jsonEach component lands in src/components/keyframery/<name>/, one file per part. The motion tokens go into src/style.css and the speed helpers into src/lib/keyframery.ts. Components that build on others bring them along.
Nuxt
Create the project
npm create nuxt@latest my-appAdd Tailwind CSS and shadcn-nuxt
npm install tailwindcss @tailwindcss/vite
npx nuxi@latest module add shadcn-nuxtCreate app/assets/css/tailwind.css with @import "tailwindcss";, then set up nuxt.config.ts:
import tailwindcss from "@tailwindcss/vite"
export default defineNuxtConfig({
css: ["~/assets/css/tailwind.css"],
vite: { plugins: [tailwindcss()] },
modules: ["shadcn-nuxt"],
shadcn: { prefix: "", componentDir: "@/components/ui" },
// Keyframery components are imported where they're used, so Nuxt doesn't auto-import them.
components: [{ path: "~/components", ignore: ["keyframery/**"] }],
})The components line matters. Without it Nuxt registers both Tabs.vue and the folder's index.ts under one name and warns about every component.
Set up the CLI
npx nuxi prepare
npx shadcn-vue@latest initAdd components
npx shadcn-vue@latest add https://keyframery.com/r/vue/tabs.jsonThe files land in app/components/keyframery/, and the motion tokens go into your Tailwind CSS file.
Use it
Import the parts
<script setup lang="ts">
import { Tabs, TabsList, TabsPanel, TabsPanels, TabsTab } from "@/components/keyframery/tabs"
</script>
<template>
<Tabs default-value="account">
<TabsList aria-label="Settings">
<TabsTab value="account">Account</TabsTab>
<TabsTab value="password">Password</TabsTab>
</TabsList>
<TabsPanels>
<TabsPanel value="account">Account settings</TabsPanel>
<TabsPanel value="password">Password settings</TabsPanel>
</TabsPanels>
</Tabs>
</template>Props work as they do in React, written in kebab-case: defaultValue becomes default-value, and onValueChange becomes @value-change or v-model:value. Content that depends on a part's state uses a scoped slot, v-slot="{ state }", and React's render prop is the #render slot.
Pick how it moves
Subtle is the default. To change it for the whole app, wrap it in KeyframeryProvider:
<script setup lang="ts">
import { KeyframeryProvider } from "@/lib/keyframery"
</script>
<template>
<KeyframeryProvider motion="springy">
<!-- your app -->
</KeyframeryProvider>
</template>Or put data-motion="springy" on <html>. Any component also takes speed: "fast", "slow" or a number. See the five styles.
Install everything
npx shadcn-vue@latest add https://keyframery.com/r/vue/all.jsonUse the short name
Add Keyframery to components.json once:
{
"registries": {
"@keyframery": "https://keyframery.com/r/vue/{name}.json"
}
}Then add components by name:
npx shadcn-vue@latest add @keyframery/tabs @keyframery/selectNotes for Vue
- Same code as the docs. Every component page has a React and a Vue tab on its code. Pick Vue once and the docs remember it.
- Strict builds. Every file passes the
vue-tstemplate'snoUnusedLocals,noUnusedParameters,verbatimModuleSyntaxanderasableSyntaxOnlychecks. - Typed parts. Each part is typed with UI SDK's own props, so your editor completes them and
vue-tsccatches mistakes. - Server rendering. Every component renders in Nuxt on the server and hydrates without mismatches.
- Agent view. The parts carry the same labels and
data-*attributes as React, so AI agents read and operate them the same way.
Questions
Are the Vue components the same as the React ones?
Yes. They have the same parts with the same names, the same Tailwind classes, the same five motion styles and the same Agent view. Every React example has a Vue version, and a test bench compares the two in the browser before each release.
Does Vite's default Vue build pass with Keyframery installed?
Yes. The vue-ts template builds with vue-tsc -b && vite build and strict unused-variable checks, and every Keyframery file passes them.
Does it work with Nuxt server rendering?
Yes. The components render on the server and hydrate without mismatches. Import them explicitly, as in the examples, and leave them out of Nuxt's auto-import (see below).
Do I need shadcn-vue's own components?
No. The shadcn-vue CLI only copies the files in and sets up your CSS. Keyframery's Vue components build on UI SDK for Vue (@ui-sdk/vue), and they sit next to any shadcn-vue components you already have.
Manual
Add Keyframery's animated UI SDK components to any React 19 and Tailwind CSS v4 app without the shadcn CLI: dependencies, motion tokens, helpers and files.
Swap the import
Every Keyframery primitive has the same parts and props as its UI SDK component. Change one import line and the component animates. Your markup and styles stay.