@td-design/react-native
Version:
react-native UI组件库
19 lines • 574 B
TypeScript
import { FC, ReactElement } from 'react';
import { TextStyle, ViewStyle } from 'react-native';
export interface BadgeProps {
/** 徽标内容 */
text?: string | number;
/** 展示封顶的数值 */
max?: number;
/** badge的形态,小圆点 | 文字 */
type?: 'dot' | 'text';
/** badge的容器的style */
containerStyle?: ViewStyle;
/** badge中文字的style */
textStyle?: TextStyle;
/** 子组件 */
children: ReactElement;
}
declare const Badge: FC<BadgeProps>;
export default Badge;
//# sourceMappingURL=index.d.ts.map