Layered Compositing
Z-ordered image and text slots. Stack backgrounds and text layers in any order with the simple slot grammar.
A lightweight web component that rasterizes layered rich text and images onto a canvas. Perfect for memes, OG cards, and sticker tools.
Z-ordered image and text slots. Stack backgrounds and text layers in any order with the simple slot grammar.
Slot grammar designed for top/bottom text over a background image. slot="background", slot="text-1", slot="text-2".
theme="inherit" picks up surrounding CSS tokens — color, font-family, font-size — so the canvas matches your design system automatically.
toBlob() and toDataURL() produce PNG, JPEG, or WebP. Download a rendered meme or upload an OG card in a single call.
Slot and attribute mutations auto-trigger a coalesced re-render via MutationObserver and requestAnimationFrame.
Slotted HTML stays in the light DOM, visually hidden so screen readers consume it as normal text. Canvas is aria-hidden.
Install via npm:
render-tag is a peer dependency — add it alongside the component.
Part of the ProfPowell vanilla web components suite:
Syntax-highlighted code blocks
Safari-style browser window frames
Interactive terminal emulator
Animated screensaver component