Skip to content
InfoQ·

🎨Canvas UI Ships 35 Experimental HTML-in-Canvas Components

35 new HTML-in-Canvas components for a bleeding-edge UI

TL;DR

Canvas UI, an open-source library, introduces 35 experimental HTML-in-Canvas components for a bleeding-edge UI experience. Each component includes WebGL and WebGPU builds, but requires Chrome with specific flags or tokens for full functionality.

Canvas UI, an open-source library, just dropped 35 experimental HTML-in-Canvas components. These components include fluid, fire, glass lens, ASCII filters, VHS grain, and particle reveals effects. If you're into bleeding-edge UI, this is a must-watch. Each effect comes with WebGL and WebGPU builds, but you'll need Chrome with the canvas-draw-element flag or an origin trial token for the full experience. The library supports React, Solid, Preact, Vue, Svelte, and vanilla TypeScript, making it accessible to a wide range of developers. The components are not distributed as a package but are available through the shadcn-compatible registry.

Canvas UI Ships 35 Experimental HTML-in-Canvas Components — InfoQ

Key Points

1

Canvas UI introduces 35 experimental HTML-in-Canvas components, each with WebGL and WebGPU builds.

2

The library supports React, Solid, Preact, Vue, Svelte, and vanilla TypeScript, broadening its appeal.

3

Components require Chrome 148-150 with the canvas-draw-element flag or origin trial token for full experience.

4

Origin trial tokens are domain-bound and run from Chrome 148 through 150, limiting wide adoption.

5

The project has amassed over 4,600 stars on GitHub, indicating significant interest among developers.

Why It Matters

If you're building a bleeding-edge web app with React or another popular framework, Canvas UI's experimental HTML-in-Canvas components offer unique visual effects. However, the requirement for specific Chrome flags or tokens limits immediate adoption. Developers should weigh the potential benefits against the setup complexity.

html-in-canvaswebglwebgpureactvuesvelte

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,564 builders reading daily.

Also get