import { ComponentType } from 'react'
import { StandardProps } from './common'
interface IconProps extends StandardProps {
/** icon 的类型
* @supported weapp, swan, alipay, tt, h5, rn
*/
type: keyof IconProps.TIconType
/** icon 的大小,单位px
* @default 23
* @supported weapp, swan, alipay, tt, h5, rn
*/
size?: string,
/** icon 的颜色,同 css 的 color
* @supported weapp, swan, alipay, tt, h5, rn
*/
color?: string
}
declare namespace IconProps {
/** icon 的类型 */
interface TIconType {
/** 成功图标 */
success
/** 成功图标(不带外圈) */
success_no_circle
/** 信息图标 */
info
/** 警告图标 */
warn
/** 等待图标 */
waiting
/** 取消图标 */
cancel
/** 下载图标 */
download
/** 搜索图标 */
search
/** 清除图标 */
clear
/** 圆环图标(多选控件图标未选择)「微信文档未标注属性」 */
circle
/** 带圆环的信息图标「微信文档未标注属性」 */
info_circle
}
}
/** 图标。组件属性的长度单位默认为 px
* @classification base
* @supported weapp, swan, alipay, tt, h5, rn
* @example_react
* ```tsx
* export default class PageView extends Component {
* constructor() {
* super(...arguments)
* }
*
* render() {
* return (
*
*
*
*
*
*
*
*
*
*
*
*
*
* )
* }
* }
* ```
* @example_vue
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* @see https://developers.weixin.qq.com/miniprogram/dev/component/icon.html
*/
declare const Icon: ComponentType
export { Icon, IconProps }