mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 20:10:58 +00:00
12 lines
399 B
TypeScript
12 lines
399 B
TypeScript
export interface UseDisclosureOptions {
|
|
onOpen?: () => void;
|
|
onClose?: () => void;
|
|
}
|
|
export interface UseDisclosureHandlers {
|
|
open: () => void;
|
|
close: () => void;
|
|
toggle: () => void;
|
|
}
|
|
export type UseDisclosureReturnValue = [boolean, UseDisclosureHandlers];
|
|
export declare function useDisclosure(initialState?: boolean, options?: UseDisclosureOptions): UseDisclosureReturnValue;
|