UNPKG

@blueprintjs/core

Version:

Core styles & components

10 lines (9 loc) 347 B
import * as React from "react"; import type { CheckedControlProps } from "../forms/controlProps"; /** * Keep track of a control's checked state in both controlled and uncontrolled modes */ export declare function useCheckedControl(props: CheckedControlProps): { checked: boolean; onChange: React.ChangeEventHandler<HTMLInputElement>; };