preact-material-components
Version:
preact wrapper for "Material Components for the web"
20 lines (18 loc) • 520 B
TypeScript
import MaterialComponent from '../MaterialComponent';
import {VNode} from 'preact';
declare interface IButtonProps {
dense?: boolean;
raised?: boolean;
disabled?: boolean;
unelevated?: boolean;
outlined?: boolean;
primary?: boolean;
secondary?: boolean;
}
export default class Button<
PropsType = JSX.HTMLAttributes,
StateType = {}
> extends MaterialComponent<PropsType & IButtonProps, StateType> {
static Icon: typeof Icon;
}
declare class Icon extends MaterialComponent<JSX.HTMLAttributes, {}> {}