Skip to content

Add Pibbl to your site

Read as Markdown

An HTML application can own its navigation, layout, forms, text, and accessibility while Pibbl draws one selected region. No application rewrite is needed. Start with a native button with a living background.

Use a positioned wrapper, a canvas with aria-hidden="true" and pointer-events: none, and native content above it. The host owns hover, focus, pressed, and disabled state. A small application bridge passes those changes to Pibbl. Keep the native control usable if the canvas is absent.

For a chart or image comparison, explicitly choose which region receives Canvas input. Keep surrounding labels and equivalent controls in HTML. State the coordinate mapping and communicate selection through a small application-owned interface.

If Pibbl should place native controls inside its layout, use HtmlBox with the required overlay. This is the opposite ownership direction. HTML remains above all Canvas paint, cannot join a Canvas filter, and does not automatically determine intrinsic Pibbl size.

The button recipe includes the full host, CSS, Pibbl component, state bridge, and teardown. Its agent companion explains adaptation and verification. Plasma forms, image reveals, and a store hero rotator remain unimplemented roadmap concepts in the design kit, awaiting feedback on the button.

Documentation built with @pibbl/core 0.0.2, revision c321a83. ALPHA — NOT FOR PRODUCTION USE.