Veil UI

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

FrameworkRuntimeRegistryComponents
ReactReact 19 + Radix UI/r298
VueVue 3.5 + Reka UI/r/vue298
HTMLTailwind v4 + native elements/r/html298

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 accordion

init 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.ts

Usage

<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-child composition works through Reka's Primitive.
  • Interactive components accept v-model: Switch, Checkbox, Tabs, Accordion, Popover, DropdownMenu and AlertDialog.
  • Motion uses the same animate-in / animate-out utilities 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-dialog

Plain 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.js

Load 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:

PatternTechnique
Accordionnative <details> / <summary>
Switch, Checkboxnative checkbox + Tailwind peer variants
TooltipCSS on :hover / :focus-within
Popovernative popover attribute
TabsARIA roles + a small tabs.js
Dropdown menuARIA menu + dropdown-menu.js
Alert dialognative <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 --code

Ported 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).

On this page