UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

15 lines 478 B
//#region src/hooks/use-boolean/index.d.ts /** * `useBoolean` is a custom hook used to manage boolean values using `on`, `off`, and `toggle` functions. * * @see https://yamada-ui.com/docs/hooks/use-boolean */ declare const useBoolean: (init?: boolean) => UseBooleanReturn; type UseBooleanReturn = [flg: boolean, setFlg: { off: () => void; toggle: () => void; on: () => void; }]; //#endregion export { UseBooleanReturn, useBoolean }; //# sourceMappingURL=index.d.ts.map