UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

17 lines (16 loc) 530 B
import { ReactNode, Ref } from 'react'; import { FlexboxProps } from 'react-layout-kit'; export interface TabBarItemType { icon: ReactNode | ((active: boolean) => ReactNode); key: string; onClick?: () => void; title: ReactNode | ((active: boolean) => ReactNode); } export interface TabBarProps extends Omit<FlexboxProps, 'onChange'> { activeKey?: string; defaultActiveKey?: string; items: TabBarItemType[]; onChange?: (key: string) => void; ref?: Ref<HTMLDivElement>; safeArea?: boolean; }