UNPKG

776 BTypeScriptView Raw
1import React from 'react';
2import type { FC, ReactNode } from 'react';
3import { NativeProps } from '../../utils/native-props';
4declare type Offset = {
5 x: number;
6 y: number;
7};
8export declare type FloatingBubbleProps = {
9 onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
10 axis?: 'x' | 'y' | 'xy' | 'lock';
11 magnetic?: 'x' | 'y';
12 children?: ReactNode;
13 offset?: Offset;
14 defaultOffset?: Offset;
15 onOffsetChange?: (offset: Offset) => void;
16} & NativeProps<'--initial-position-left' | '--initial-position-right' | '--initial-position-top' | '--initial-position-bottom' | '--z-index' | '--edge-distance' | '--size' | '--border-radius' | '--background'>;
17export declare const FloatingBubble: FC<FloatingBubbleProps>;
18export {};