Canvas UI, an open-source component library developed by React Bits creator David Haz, has been released. It is the first library built on the experimental HTML-in-Canvas API, enabling GPU-accelerated visual effects to be applied directly to live, interactive web page content.
The library includes 35 components, offering effects such as pointer-driven fluid, fire, glass lenses, ASCII filters, VHS grain, and particle reveals. Each effect provides both a WebGL build using GLSL and a WebGPU build using WGSL via vgpu. Wrappers are available for React, Solid, Preact, Vue, Svelte, and vanilla TypeScript.
Unlike traditional methods that render static bitmaps, most Canvas UI components utilize Chrome's html-in-canvas API. This API allows live DOM content to be laid out within a canvas, captured as a texture, and then distorted using a shader. This approach ensures that text remains selectable, links remain clickable, and content stays within the accessibility tree.
Components are distributed as source code through a shadcn-compatible registry, rather than as a package. Full functionality, particularly for html-in-canvas effects, requires Chrome with the `canvas-draw-element` flag enabled or an origin trial token, which is active from Chrome 148 through 150 and domain-bound. Without these, html-in-canvas effects fall back to a plain GPU overlay or render content unchanged, though 3D object components function universally.
The library has received positive feedback, with shadcn calling it one of the most impressive registries seen, and Chrome for Developers acknowledging its role in empowering new frameworks. Flavio Copes highlighted the engineering details, noting features like IntersectionObserver for off-screen components, `prefers-reduced-motion` support, and proper resource release on unmount. Copes advised using one strong effect rather than multiple and avoiding its use on dashboards, checkout flows, or documentation sites.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Canvas UI, an open-source library, has launched with 35 components that apply WebGL and WebGPU effects directly over live, interactive HTML content using the experimental HTML-in-Canvas API. This allows for visual effects like fluid distortions and glass lenses while preserving DOM interactivity and accessibility. The library offers builds for various frameworks and requires Chrome with a specific flag or origin trial token for full functionality.