z-react-dynamic-form
Version:
A dynamic form builder for React applications with various input types and validation
24 lines (23 loc) • 927 B
TypeScript
export declare const determineDropdownPosition: (triggerElement: HTMLElement | null, options?: {
dropdownHeight?: number;
margin?: number;
preferredPosition?: "top" | "bottom";
container?: HTMLElement | null;
}) => {
position: "top" | "bottom";
style: React.CSSProperties;
};
export declare const useDropdownPosition: () => {
position: {
position: "top" | "bottom";
style: React.CSSProperties;
};
initPositioning: (trigger: HTMLElement | null, dropdown: HTMLElement | null, container?: HTMLElement | null, options?: {
dropdownHeight?: number;
margin?: number;
preferredPosition?: "top" | "bottom";
}) => () => void;
recalculatePosition: () => void;
};
export declare const findDialogContainer: (element: HTMLElement | null) => HTMLElement | null;
export declare const findScrollableParent: (element: HTMLElement | null) => HTMLElement | null;