@types/carbon-components-react
Version:
TypeScript definitions for carbon-components-react
15 lines (10 loc) • 639 B
TypeScript
import * as React from "react";
import { ReactInputAttr, RequiresIdProps, ForwardRefReturn } from "../../../typings/shared";
type ExcludedAttributes = "aria-label" | "className" | "id" | "onChange" | "ref" | "type";
export interface InlineCheckboxProps extends Omit<ReactInputAttr, ExcludedAttributes>, RequiresIdProps {
ariaLabel?: ReactInputAttr["aria-label"] | undefined,
indeterminate?: boolean | undefined,
onChange?(checked: boolean, id: string, event: React.ChangeEvent<HTMLInputElement>): void,
}
declare const InlineCheckbox: ForwardRefReturn<HTMLInputElement, InlineCheckboxProps>;
export default InlineCheckbox;