1 | import React from 'react';
|
2 | import type { ReactNode } from 'react';
|
3 | import { NativeProps } from '../../utils/native-props';
|
4 | export declare type FloatingPanelRef = {
|
5 | setHeight: (height: number, options?: {
|
6 | immediate?: boolean;
|
7 | }) => void;
|
8 | };
|
9 | export 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'>;
|
15 | export 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 |