UNPKG

1.2 kBTypeScriptView Raw
1import React from 'react';
2import type { defaultSnapProps, RefHandles } from './types';
3export declare const BottomSheet: React.ForwardRefExoticComponent<{
4 initialState: 'OPEN' | 'CLOSED';
5 lastSnapRef: React.MutableRefObject<number | null>;
6} & {
7 children: React.ReactNode;
8 sibling?: React.ReactNode;
9 onSpringStart?: (event: import("./types").SpringEvent) => void;
10 onSpringCancel?: (event: import("./types").SpringEvent) => void;
11 onSpringEnd?: (event: import("./types").SpringEvent) => void;
12 open: boolean;
13 className?: string;
14 footer?: React.ReactNode;
15 header?: React.ReactNode;
16 initialFocusRef?: false | React.RefObject<HTMLElement>;
17 onDismiss?: () => void;
18 blocking?: boolean;
19 maxHeight?: number;
20 scrollLocking?: boolean;
21 snapPoints?: import("./types").snapPoints;
22 defaultSnap?: number | ((props: defaultSnapProps) => number);
23 reserveScrollBarGap?: boolean;
24 skipInitialTransition?: boolean;
25 expandOnContentDrag?: boolean;
26} & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "children"> & React.RefAttributes<RefHandles>>;
27
\No newline at end of file