UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

20 lines (19 loc) 859 B
import React, { ReactNode } from 'react'; import { NativeProps } from '../../utils/native-props'; export declare type FloatingPanelRef = { setHeight: (height: number, options?: { immediate?: boolean; }) => void; }; export declare type FloatingPanelProps = { anchors: number[]; children: ReactNode; onHeightChange?: (height: number, animating: boolean) => void; handleDraggingOfContent?: boolean; } & NativeProps<'--border-radius' | '--z-index' | '--header-height'>; export declare const FloatingPanel: React.ForwardRefExoticComponent<{ anchors: number[]; children: ReactNode; onHeightChange?: ((height: number, animating: boolean) => void) | undefined; handleDraggingOfContent?: boolean | undefined; } & NativeProps<"--z-index" | "--border-radius" | "--header-height"> & React.RefAttributes<FloatingPanelRef>>;