UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

28 lines (27 loc) 926 B
import { default as React, FunctionComponent } from 'react'; import { BasicComponent } from '../../utils/typings'; import { default as TabPane } from '../tabpane'; export type TabsTitle = { title: string; disabled: boolean; active?: boolean; value: string | number; }; export interface TabsProps extends BasicComponent { tabStyle: React.CSSProperties; value: string | number; defaultValue: string | number; activeColor: string; direction: 'horizontal' | 'vertical'; activeType: 'line' | 'smile' | 'simple' | 'card' | 'button' | 'divider'; duration: number | string; align: 'left' | 'right'; title: () => JSX.Element[]; onChange: (index: string | number) => void; onClick: (index: string | number) => void; autoHeight: boolean; children?: React.ReactNode; } export declare const Tabs: FunctionComponent<Partial<TabsProps>> & { TabPane: typeof TabPane; };