vantui-edit
Version:
一套适用于Taro3及React的vantui组件库
34 lines (28 loc) • 860 B
TypeScript
import { FunctionComponent, ReactNode } from 'react'
import { ViewProps } from '@tarojs/components'
export interface TabbarProps extends ViewProps {
active?: string | number
activeColor?: string
inactiveColor?: string
fixed?: boolean
placeholder?: boolean
border?: boolean
zIndex?: number
safeAreaInsetBottom?: boolean
children?: ReactNode
onChange?: (event: { detail: string | number }) => void
}
export interface TabbarItemProps extends Omit<ViewProps, 'onClick'> {
info?: ReactNode
name?: string | number
icon?: string
dot?: boolean
iconPrefix?: string
renderIconActive?: ReactNode
renderIcon?: ReactNode
children?: ReactNode
onClick?: (name: string | number) => void
}
declare const TabbarItem: FunctionComponent<TabbarItemProps>
declare const Tabbar: FunctionComponent<TabbarProps>
export { Tabbar, TabbarItem }