UNPKG

1.04 kBTypeScriptView Raw
1import React from 'react';
2import type { ReactNode } from 'react';
3import { NativeProps } from '../../utils/native-props';
4export declare type FloatingPanelRef = {
5 setHeight: (height: number, options?: {
6 immediate?: boolean;
7 }) => void;
8};
9export declare type FloatingPanelProps = {
10 anchors: number[];
11 children: ReactNode;
12 onHeightChange?: (height: number, animating: boolean) => void;
13 handleDraggingOfContent?: boolean;
14} & NativeProps<'--border-radius' | '--z-index' | '--header-height'>;
15export declare const FloatingPanel: React.ForwardRefExoticComponent<{
16 anchors: number[];
17 children: ReactNode;
18 onHeightChange?: ((height: number, animating: boolean) => void) | undefined;
19 handleDraggingOfContent?: boolean | undefined;
20} & {
21 className?: string | undefined;
22 style?: (React.CSSProperties & Partial<Record<"--z-index" | "--border-radius" | "--header-height", string>>) | undefined;
23 tabIndex?: number | undefined;
24} & React.AriaAttributes & React.RefAttributes<FloatingPanelRef>>;
25
\No newline at end of file