UNPKG

@vtex/admin-ui

Version:

> VTEX admin component library

18 lines (17 loc) 825 B
import type { CheckboxProps as ReakitProps } from 'reakit/Checkbox'; import type { CheckboxStateReturn } from '../Checkbox'; import { useCheckboxState } from '../Checkbox'; import type { ComponentPropsWithRef } from 'react'; export declare const Toggle: import("@vtex/admin-ui-react").AdminUIJsxComponent<import("reakit-system/ts/createComponent").Component<"input", import("reakit/ts/Checkbox").CheckboxOptions>, ToggleOptions, { size: { regular: any; small: any; }; }>; declare type State = Pick<ReakitProps, 'state' | 'setState'>; export interface ToggleOptions { state?: State; } export declare type ToggleProps = ComponentPropsWithRef<typeof Toggle> & ToggleOptions; export declare type ToggleStateReturn = CheckboxStateReturn; export { useCheckboxState as useToggleState };