@vimeo/iris
Version:
Vimeo Design System
21 lines (20 loc) • 620 B
TypeScript
import { RefObject, ReactElement } from 'react';
import { Attach } from './usePortal_DEPRECATED.types';
interface Props {
anchor: RefObject<HTMLElement>;
anchorToWindow: boolean;
attach: Attach;
childRef: RefObject<HTMLElement>;
children: ReactElement;
margin?: number;
style?: any;
}
export declare function Anchor({ anchor, anchorToWindow, attach, childRef, children, margin, style, ...props }: Props): JSX.Element;
export interface StyledProps {
anchorToWindow: boolean;
attach: Attach;
childRect: Partial<DOMRect>;
margin: number;
rect: Partial<DOMRect>;
}
export {};