UNPKG

347 BTypeScriptView Raw
1import * as React from "react";
2import type { CheckedControlProps } from "../forms/controlProps";
3/**
4 * Keep track of a control's checked state in both controlled and uncontrolled modes
5 */
6export declare function useCheckedControl(props: CheckedControlProps): {
7 checked: boolean;
8 onChange: React.ChangeEventHandler<HTMLInputElement>;
9};