Spektrum API Reference - v1.2.0
    Preparing search index...
    interface DockPanelOptions {
        id: string;
        label: string;
        onClose?: () => void;
    }
    Index

    Properties

    Properties

    id: string

    Stable key. Re-registering the same id replaces the prior panel — re-mounting a companion refreshes, doesn't stack.

    label: string

    Visible tab label.

    onClose?: () => void

    Called when the user clicks × on the tab. Typically () => unmount() — the dock then detach()es so a double-detach is a no-op.