@clayui/form
Version:
ClayForm component
38 lines (37 loc) • 1.06 kB
TypeScript
/**
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: BSD-3-Clause
*/
import React from 'react';
interface IProps extends React.InputHTMLAttributes<HTMLInputElement> {
/**
* Flag to indicate if input is checked or not.
*/
checked: boolean;
/**
* Props to add to the outer most container.
*/
containerProps?: React.HTMLAttributes<HTMLDivElement>;
/**
* Props to disable checkbox.
*/
disabled?: boolean;
/**
* Flag to indicate that checkbox is in an indeterminate state.
*/
indeterminate?: boolean;
/**
* Flag to display element `inline`.
*/
inline?: boolean;
/**
* Text describes what the checkbox is for.
*/
label?: React.ReactText;
/**
* Callback for when checkbox value is changed.
*/
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
}
declare const Checkbox: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLInputElement>>;
export default Checkbox;