rtaro-ui
Version:
UI KIT for Taro
42 lines (28 loc) • 847 B
TypeScript
import { MouseEvent, ComponentClass } from 'react'
import { CommonEvent } from '@rtarojs/components/types/common'
import AtComponent from './base'
export interface TabItem {
overflowCount?: number
dot?: boolean
count?: number | string
title?: string
iconPrefixClass?: string
iconType?: string
selectedIconType?: string
image?: string
selectedImage?: string
className?: string
}
export interface AtTabBarProps extends AtComponent {
fixed?: boolean
backgroundColor?: string
activeValue: number | string
iconSize?: number | string
fontSize?: number | string
color?: string
selectedColor?: string
tabList?: TabItem[]
onClick: (value: number | string, event: CommonEvent) => void
}
declare const AtTabBar: ComponentClass<AtTabBarProps>
export default AtTabBar