nextuiq
Version:
NextUIQ is a modern, lightweight, and developer-friendly UI component library for React and Next.js. Built with TypeScript and Tailwind CSS, it offers customizable, accessible, and performance-optimized components with built-in dark mode, theme customizat
13 lines (12 loc) • 327 B
TypeScript
interface UseModalProps {
defaultOpen?: boolean;
onOpenChange?: (open: boolean) => void;
}
interface UseModalReturn {
isOpen: boolean;
open: () => void;
close: () => void;
toggle: () => void;
}
export declare const useModal: ({ defaultOpen, onOpenChange }?: UseModalProps) => UseModalReturn;
export {};