@suluk/nano-stores - v0.1.3
    Preparing search index...

    Interface DrawerOptions

    interface DrawerOptions {
        drawer: PanelEl;
        backdrop?: PanelEl | null;
        openClass?: string;
        hideDelayMs?: number;
        inertTargets?: () => { inert: boolean }[];
        initialFocus?: () => { focus(): void } | null | undefined;
        onOpen?: () => void;
        onClose?: () => void;
        raf?: (fn: () => void) => void;
        setHideTimer?: (fn: () => void, ms: number) => void;
    }
    Index

    Properties

    drawer: PanelEl

    the sliding panel.

    backdrop?: PanelEl | null

    the dimming backdrop (clicking it closes).

    openClass?: string

    class toggled for the open transition (default "open").

    hideDelayMs?: number

    ms to wait before hard-hiding on close (matches the CSS transition; default 220).

    inertTargets?: () => { inert: boolean }[]

    page-chrome elements to make inert while open (focus-trap + AT hide).

    initialFocus?: () => { focus(): void } | null | undefined

    element to focus on open (e.g. the close button).

    onOpen?: () => void

    called on open / close (e.g. cart.reload() before showing).

    onClose?: () => void
    raf?: (fn: () => void) => void

    injectables (default the globals) — tests pass sync stand-ins.

    setHideTimer?: (fn: () => void, ms: number) => void