Files
wdi-dashboard/node_modules/@chakra-ui/hooks/dist/use-boolean.d.ts
2024-08-16 15:06:52 +05:30

16 lines
396 B
TypeScript

type InitialState = boolean | (() => boolean);
/**
* React hook to manage boolean (on - off) states
*
* @param initialState the initial boolean state value
*
* @see Docs https://chakra-ui.com/docs/hooks/use-boolean
*/
declare function useBoolean(initialState?: InitialState): readonly [boolean, {
on: () => void;
off: () => void;
toggle: () => void;
}];
export { useBoolean };