UNPKG

@gluestack-ui/utils

Version:

Utility functions and hooks for gluestack-ui

14 lines 507 B
import type { RefObject } from 'react'; import type { ToggleState } from '@react-stately/toggle'; import { AriaToggleProps } from '@react-types/checkbox'; export interface ToggleAria { /** * Props to be spread on the input element. */ inputProps: any; } /** * Handles interactions for toggle elements, e.g. Checkboxes and Switches. */ export declare function useToggle(props: AriaToggleProps, state: ToggleState, _ref: RefObject<any>): ToggleAria; //# sourceMappingURL=useToggle.d.ts.map