preact-material-components
Version:
preact wrapper for "Material Components for the web"
28 lines (27 loc) • 845 B
TypeScript
import { Component, VNode } from 'preact';
import MaterialComponent from '../Base/MaterialComponent';
export interface ITypographyProps {
body1?: boolean;
body2?: boolean;
button?: boolean;
caption?: boolean;
headline1?: boolean;
headline2?: boolean;
headline3?: boolean;
headline4?: boolean;
headline5?: boolean;
headline6?: boolean;
overline?: boolean;
subtitle1?: boolean;
subtitle2?: boolean;
title?: boolean;
tag?: Component<{}, {}> | ((props: {}) => VNode) | keyof JSX.IntrinsicElements;
}
export interface ITypographyState {
}
export declare class Typography extends MaterialComponent<ITypographyProps, ITypographyState> {
protected componentName: string;
protected mdcProps: string[];
protected materialDom(allprops: any): JSX.Element;
}
export default Typography;