UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

15 lines (14 loc) 517 B
import React, { ReactElement, ReactNode } from 'react'; import { ICON_TYPES } from './const'; export interface IconProps { children?: ReactNode; className?: string; type: keyof typeof ICON_TYPES; width?: string | number; height?: string | number; color?: string; onClick?: (e: React.MouseEvent) => void; style?: React.CSSProperties; } declare const Icon: ({ className, type, children, width, height, color, onClick, style, ...otherProps }: IconProps) => ReactElement; export { Icon };