preact-material-components
Version:
preact wrapper for "Material Components for the web"
30 lines (29 loc) • 935 B
TypeScript
import { MDCIconButtonToggle } from '@material/icon-button';
import MaterialComponent from '../Base/MaterialComponent';
export interface IIconButtonProps {
disabled?: boolean;
}
export interface IIconButtonState {
}
export interface IIconProps {
on?: boolean;
element?: boolean;
}
export interface IIconState {
}
export declare class Icon extends MaterialComponent<IIconProps, IIconState> {
protected componentName: string;
protected mdcProps: string[];
protected materialDom(props: any): JSX.Element;
}
export declare class IconButton extends MaterialComponent<IIconButtonProps, IIconButtonState> {
MDComponent?: MDCIconButtonToggle;
protected componentName: string;
protected mdcProps: never[];
componentDidMount(): void;
componentWillUnmount(): void;
protected materialDom(props: any): JSX.Element;
}
export default class extends IconButton {
static readonly Icon: typeof Icon;
}