Component packs › Muse › Version Switcher
Step between regenerated drafts and the answer is edited into the next one, showing only what differs.
Version Switcher is a pager from Muse, a component pack with 6 AI writing components: AI writing controls that show every change as an edit you can read and trace. Price: $2 for the whole pack.
Built with: draft to draft diff, regenerate, pager.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
prompt | string | The prompt shown above the answer. | |
versions | string[] | Drafts available at the start. | |
regenerate | (current: string) => string | Promise<string> | from a short built-in list | Returns a new draft (or a promise of one). Default: from a short built-in list. |
onChange | (index: number, text: string) => void | ||
autoplay | number | false | Showcase mode: steps through drafts every N ms while visible. |
readonly index: numbergo(index: number): voiddestroy(): voidimport VersionSwitcher from './VersionSwitcher';
<VersionSwitcher />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: AI writing UI.