UNPKG

715 BTypeScriptView Raw
1import { ComponentType } from 'react'
2import { StandardProps } from './common'
3interface FollowSwanProps extends StandardProps {
4 /** 组件大小
5 * @supported swan
6 * @default "default"
7 */
8 size?: string
9 /** 组件样式
10 * @supported swan
11 * @default "primary"
12 */
13 type?: string
14 /** 关注和取消关注成功的回调,返回关注状态 {isFavor: true|false}
15 * @supported swan
16 */
17 onFavorStatusChange?: CommonEventFunction
18}
19/** 关注小程序
20 * @classification open
21 * @supported swan
22 * @see https://smartprogram.baidu.com/docs/develop/extended/component-content/follow-swan/
23 */
24declare const FollowSwan: ComponentType<FollowSwanProps>
25export { FollowSwan, FollowSwanProps }