vfx-ui-vue

Shader-native visual effect components for Vue 3. WebGPU via vgpu.
329
Install
npm install vfx-ui-vue
Latest Version:0.1.2
Vue:3
License:MIT
Last Updated:Sep 23, 2026
Links: GitHub  ·  npm
Maintainer: aliyama

vfx-ui-vue

Expressive Vue 3 components: GPU atmospheres via vgpu, customizable Hero and Footer sections, and focused DOM/CSS interactions.

Install

npm install vfx-ui-vue

Requires Vue >= 3.5. GPU effects need WebGPU and accept a fallback; the Footers, Magnetic, SpectralCard, and KineticText work without it.

Usage

<script setup lang="ts">
import { HeroFluid } from "vfx-ui-vue";
</script>

<template>
  <section style="height: 680px">
    <HeroFluid title="Your next big idea." interactive
      :primary-cta="{ label: 'Get started', href: '/start' }"
      :secondary-cta="null" />
  </section>
</template>

Components

Effects: AstraField · RadiantDots · WaveBackground · FluidGradient · Aurora · Starfield · ParticleField · GlassCard · LiquidGlass · GlassLens · BlackHole · MeshGradient · Iridescent · Vortex · RibbonField · FiberFlow · LightPrism · ChromaFlow

Drop-in hero sections: HeroEclipse · HeroContour · HeroFluid · HeroAurora · HeroFiber · HeroGlobe · HeroMesh · HeroIridescent · HeroVortex · HeroRibbon · HeroParticles · HeroStarfield · HeroBlackHole · HeroChroma

Live previews, props, and variants for every component: vfx.2t.hk/components. Machine-readable docs: llms.txt.

Prefer copy-paste over an npm dependency? Use the registry via npx vfx-ui-vue-cli add <name>.

License

MIT — © vfx-ui-vue contributors. Renderer core: vercel-labs/vgpu (MIT).

Content and interaction

Hero defaults are examples, not required copy. title and subtitle accept Vue VNodes. CTA objects accept a real href or a button onClick; null hides an action. The default slot replaces the entire content stack. Vue class and style attributes apply to the section.

Magnetic and SpectralCard accept your own default-slot content; KineticText accepts text. Pointer motion is smoothed without per-frame component renders, stops at rest, and respects reduced motion and touch. GlassCard also accepts DOM content above its decorative shader; it does not refract arbitrary DOM behind it.

<script setup lang="ts">
import { SpectralCard, Magnetic, KineticText } from "vfx-ui-vue";
</script>

<template>
  <SpectralCard>
    <div style="padding: 40px">
      <h2><KineticText text="Stay curious." /></h2>
      <Magnetic><a href="https://github.com/AliYa-chen/vfx-ui-vue/blob/HEAD/explore">Explore</a></Magnetic>
    </div>
  </SpectralCard>
</template>

Footer sections

FooterVinyl, FooterTidal, FooterFold, and FooterPhosphor accept brand, title, description, cta: { label, href }, groups: [{ label, links: [{ label, href }] }], legal, and copyright. The default slot replaces the intro and navigation; the artwork remains. Brand text is generated into the artwork, not baked into an image. interactive defaults to true and respects reduced motion and touch. The canvas-based effects sleep offscreen. FooterTidal also accepts animate; FooterFold accepts depth (0–55 degrees). All accept color, background, Vue class, and style.

The current source removes LiveChart, WebGlobe, and EnergyOrb. Keep an earlier published version if you still rely on those exports; HeroGlobe is unaffected.

The Glass components render original optical solids over procedural scenes. RadiantDots implements a multi-pass light field adapted from the MIT-licensed Vercel VGPU example. It accepts layout, motion, color, intensity, speed, animate, and interactive; it does not include status text or imply a real loading state.

Related Packages

@shader-core/vue

Vue components for Shader Core: with layers as children.

1,342
shaders

The design platform for web shaders

3,092,964 5,609
@morev/vue-transitions

Shareable Vue transitions library

412,603 222
animated-number-vue

A vue component with number animation

158,718 211
vue-starport

Shared Vue component across routes with animations

57,522 1,949

Version History

Version Released Vue License
0.1.2 >=3.5 MIT
0.1.1 >=3.5 MIT