UNPKG

@uiw/react-native

Version:
45 lines (44 loc) 1.3 kB
import React from 'react'; import { IconsName } from '../Icon'; export declare type TabsItemIconTypes = IconsName | React.ReactElement | React.ReactNode | JSX.Element; /** 样式集合类型 */ export interface TabsItemStyle { /** 宽度 */ width?: number; /** 文字颜色 */ titleColor?: string; /** 文字粗细 */ titleFontWeight?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'bold' | 'normal'; /** 文字大小 */ titleSize?: number; /** icon 颜色 */ iconColor?: string; /** icon 大小 */ iconSize?: number; /** border 宽度 */ borderWidth?: number; /** border 颜色 */ borderColor?: string; /** border 距离底部距离一般与 Tabs paddingBottom 相等 */ borderBottom?: number; /** border 粗细 */ borderHeight?: number; } export interface TabsItemProps { /** 显示的文字 */ title: string; /** 样式集合 */ style?: TabsItemStyle; /** * 点击时触发 * void * @param title type: string title 文字 */ onPress?: (title: string) => void; /** 图标 */ icon?: TabsItemIconTypes; /** 是否显示下边框 */ border?: boolean; } declare function TabsItem(props: TabsItemProps): JSX.Element; export default TabsItem;