@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
41 lines (40 loc) • 939 B
TypeScript
import { FunctionComponent, ReactNode } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface TabbarItemProps extends BasicComponent {
/**
* 标签页的标题
* @default -
*/
title: ReactNode
/**
* 自定义图标
* @default -
*/
icon: ReactNode
/**
* 徽标中显示的内容,支持数字、字符和自定义内容
* @default -
*/
value: ReactNode
/**
* 徽标是否为小点
* @default false
*/
dot: boolean
/**
* value 为数值时,最大值
* @default 99
*/
max: number
/**
* 徽标的上下偏移量,支持单位设置,可设置为:5 等
* @default 0
*/
top: string
/**
* 徽标的左右偏移量,支持单位设置,可设置为:5 等
* @default 0
*/
right: string
}
export declare const TabbarItem: FunctionComponent<Partial<TabbarItemProps>>;