UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

9 lines (8 loc) 243 B
export declare function useDisclosure(initialState: boolean, callbacks?: { onOpen?(): void; onClose?(): void; }): readonly [boolean, { readonly open: () => void; readonly close: () => void; readonly toggle: () => void; }];