Vue and HTML
Use the same components in React, Vue and plain HTML.
Veil UI ships the same design system for three runtimes. React is the reference implementation; Vue and plain HTML builds are generated from the same source folder and published in their own registry indexes.
Support matrix
| Framework | Runtime | Registry | Components |
|---|---|---|---|
| React | React 19 + Radix UI | /r | 298 |
| Vue | Vue 3.5 + Reka UI | /r/vue | 298 |
| HTML | Tailwind v4 + native elements | /r/html | 298 |
Every component in the catalog has a Vue and a plain HTML port. Each component page lists the frameworks it supports in a Vue and plain HTML section at the bottom, and the CLI installs the matching files for your framework.
Vue
Setup
npx veil-ui init --framework vue
npx veil-ui add button card tabs accordioninit writes components.json with "framework": "vue", installs
reka-ui, lucide-vue-next, class-variance-authority, clsx and
tailwind-merge, and adds the tokens to your stylesheet.
Vue files are installed as folders so compound components stay importable from one path:
components/ui/button/
├─ index.ts re-exports Button and buttonVariants
├─ Button.vue
└─ variants.tsUsage
<script setup lang="ts">
import { Button } from "@/components/ui/button";
</script>
<template>
<Button variant="outline" @click="save">Save changes</Button>
</template>- Behaviour and accessibility come from Reka UI, the Vue port of Radix primitives.
as-childcomposition works through Reka'sPrimitive.- Interactive components accept
v-model:Switch,Checkbox,Tabs,Accordion,Popover,DropdownMenuandAlertDialog. - Motion uses the same
animate-in/animate-oututilities as React; Reka exposes the popper and accordion CSS variables the keyframes read.
Plain HTML
Setup
npx veil-ui init --framework html
npx veil-ui add card input tabs alert-dialogPlain HTML mode does not require a package.json, TypeScript or a path alias.
It writes veil-ui.css with the design tokens and installs snippets into
components/ui/:
components/ui/
├─ button.html
├─ tabs.html
├─ tabs.js only for components that need behaviour
├─ alert-dialog.html
└─ alert-dialog.jsLoad your compiled Tailwind stylesheet, the tokens and any sibling script:
<link rel="stylesheet" href="/styles.css" />
<script src="components/ui/tabs.js"></script>
<button class="inline-flex h-9 items-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground">
Save changes
</button>For prototypes, Tailwind's browser build can compile classes at runtime. For production, run the Tailwind CLI or your bundler over the HTML files so the stylesheet is generated ahead of time.
Interactive HTML ports stay dependency-free:
| Pattern | Technique |
|---|---|
| Accordion | native <details> / <summary> |
| Switch, Checkbox | native checkbox + Tailwind peer variants |
| Tooltip | CSS on :hover / :focus-within |
| Popover | native popover attribute |
| Tabs | ARIA roles + a small tabs.js |
| Dropdown menu | ARIA menu + dropdown-menu.js |
| Alert dialog | native <dialog> + alert-dialog.js |
HTML motion relies on native CSS: @starting-style, ::details-content with
interpolate-size, transition-behavior: allow-discrete and native
dialog/popover state selectors. No animation classes are required beyond the
Tailwind utilities already in each snippet. Browsers that predate these
features open and close instantly — still functional, just unanimated.
Copy the markup from the component page, or install it with the CLI so the sibling script is written next to the snippet.
Switching frameworks
The framework lives in components.json:
{
"framework": "vue"
}Override it for a single command with --framework:
npx veil-ui add button --framework html
npx veil-ui list --framework vue
npx veil-ui view card --framework html --codePorted components
All 298 components are ported. That includes the primitives (accordion,
alert, button, tabs, tooltip, …), forms, data display, charts, media,
navigation, overlays, typography, layout, mobile patterns, landing sections,
auth flows and full page templates.
New components are expected to ship with their Vue and HTML ports. The React
registry stays the source of truth; Vue and HTML outputs are validated during
pnpm registry:build (Vue SFCs are parsed with @vue/compiler-sfc, and
cross-component imports are resolved against the Vue registry).