preact-material-components
Version:
preact wrapper for "Material Components for the web"
18 lines (17 loc) • 593 B
TypeScript
import { MDCSwitch } from '@material/switch';
import MaterialComponent from '../Base/MaterialComponent';
export interface ISwitchProps extends JSX.HTMLAttributes {
disabled?: boolean;
}
export interface ISwitchState {
}
export declare class Switch extends MaterialComponent<ISwitchProps, ISwitchState> {
MDComponent?: MDCSwitch;
protected componentName: string;
protected mdcProps: string[];
protected mdcNotifyProps: string[];
componentDidMount(): void;
componentWillUnmount(): void;
protected materialDom(allprops: any): JSX.Element;
}
export default Switch;