@vs-form/vs-form
Version:
A schema-based form generator component for React using material-ui
21 lines (20 loc) • 763 B
TypeScript
import * as React from 'react';
import { IconProps } from '@material-ui/core/Icon';
import { SvgIconProps } from '@material-ui/core/SvgIcon';
import { TooltipProps } from '@material-ui/core/Tooltip';
export interface IBaseIconProps {
tooltip?: string;
tooltipProps?: TooltipProps;
}
export interface IconMdiProps extends IBaseIconProps, IconProps {
icon: string;
}
export interface IconSvgProps extends IBaseIconProps, SvgIconProps {
svg: string;
}
export interface IconCompProps extends IBaseIconProps, SvgIconProps {
component: React.ComponentType<SvgIconProps>;
}
export declare type IconTypeProps = IconMdiProps | IconSvgProps | IconCompProps;
declare const BaseIcon: React.SFC<IconTypeProps>;
export default BaseIcon;