preact-material-components
Version:
preact wrapper for "Material Components for the web"
21 lines (20 loc) • 677 B
TypeScript
import { MDCCheckbox } from '@material/checkbox/';
import MaterialComponent from '../Base/MaterialComponent';
export interface ICheckboxProps {
indeterminate?: boolean;
disabled?: boolean;
onChange?: JSX.GenericEventHandler;
checked?: boolean;
}
export interface ICheckboxState {
}
export declare class Checkbox extends MaterialComponent<ICheckboxProps, ICheckboxState> {
MDComponent?: MDCCheckbox;
protected componentName: string;
protected mdcProps: string[];
protected mdcNotifyProps: string[];
componentDidMount(): void;
componentWillUnmount(): void;
protected materialDom(allprops: any): JSX.Element;
}
export default Checkbox;