interface InfoPanelParams {
    container?: HTMLElement;
    description?: string;
    id?: string;
    title?: string;
}

Properties

container?: HTMLElement

DOM container for the panel + pill. Defaults to document.body.

description?: string

Body description, rendered as HTML at the top of the panel body above the controls. Examples are trusted authors, so no sanitisation pass is run — pass plain text or trusted markup. Wrap paragraphs in <p> for proper spacing.

id?: string

Stable id, used to namespace the panel's localStorage key for drag-position + closed-state persistence. Each example should pass its own example id so two panels don't share a slot. Default "infoPanel".

title?: string

Header title. Default "Info".