leo-design-ui
Version:
React Design Library
22 lines (21 loc) • 727 B
TypeScript
import React, { ReactNode } from "react";
type TabsSize = 'large' | 'small' | 'middle';
type TabType = 'line' | 'card';
type TabPosition = 'top' | 'left';
export interface TabsProps {
defaultIndex?: string;
tabPosition?: TabPosition;
className?: string;
children?: ReactNode;
size?: TabsSize;
type?: TabType;
onSelect?: (selectedIndex: string) => void;
}
interface TabsContext {
index: string;
type: string;
onSelect?: (selectedIndex: string) => void;
}
export declare const TabsContext: React.Context<TabsContext>;
declare const Tabs: ({ type, defaultIndex, className, size, children, onSelect, tabPosition }: TabsProps) => import("react/jsx-runtime").JSX.Element;
export default Tabs;