doj-react-adminlte
Version:
Simple and easy-to-use AdminLTE components for React
38 lines (33 loc) • 948 B
TypeScript
import * as React from 'react';
export interface CheckBoxProps {
/**
* Sets the checked state of the component.
*/
checked?: boolean;
/**
* Enables/disables user interaction with the component.
*/
disabled?: boolean;
/**
* Set to true if you want the checkboxes to appear on the same line.
*/
inline?: boolean;
/**
* Specifies the text to use as the label
*/
label: React.ReactNode;
/**
* Specifies the name of the component.
* It is used to distinguish elements
* when a single form change handler is used
*/
name: string;
/**
* Callback fired when component value changes.
* Accepts a function with two parameters, namely field and value
*/
onChange?: (...args: any[])=>any;
}
export default class CheckBox extends React.Component<CheckBoxProps, any> {
render(): JSX.Element;
}