@surdeddd/bottom-sheet
    Preparing search index...

    Type Alias TypedBottomSheetElement<TId>

    TypedBottomSheetElement: HTMLElement & {
        snapTo: (id: TId) => Promise<void>;
        open: (id?: TId) => Promise<void>;
        close: (reason?: CloseReason) => Promise<void>;
        expand: () => Promise<void>;
        collapse: () => Promise<void>;
        isTop: () => boolean;
        depth: () => number;
        canDismiss: () => boolean;
        setRadius: (r: string | number) => void;
        setMaxHeight: (h: string | number) => void;
        setAllowed: (ids: TId[], snap?: TId) => void;
        snap: TId | null;
        sheetState: EngineState & { activeId: TId } | null;
    }

    Type Parameters

    • TId extends string = string