@uva-glass/component-library
Version:
React components UvA
20 lines (19 loc) • 630 B
TypeScript
interface positionProps {
style: {
style: {
inset: string;
};
};
status: boolean;
}
interface optionProps {
mouseEvent: 'click' | 'hover';
position: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
offset: number;
maxFixedHeight?: `${number}${'px' | 'rem'}`;
horizontalPosition?: 'left' | 'right';
mobileBreakpoint?: `${number}${'px' | 'rem'}`;
fullWidth: boolean;
}
export declare function usePositionedFloaters<T extends HTMLElement = HTMLElement>(positionedElement: T | null, referenceElement: T | null, options: optionProps): positionProps;
export {};