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

    Type Alias UseBottomSheetReturn<TId>

    UseBottomSheetReturn: UseBottomSheetRefs & {
        state: EngineState & { activeId: TId };
        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;
        setAllowed: (ids: TId[], snap?: TId) => void;
        addAnchor: (opts: AnchorOptions) => () => void;
        setScrimStages: (opts: ScrimStagesOptions | null) => () => void;
        recompute: () => void;
        getEngine: () => BottomSheetEngine | null;
    }

    Type Parameters

    • TId extends string = string