goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
43 lines • 1.13 kB
TypeScript
import { default as React } from 'react';
export interface TabsItem {
title?: string;
label?: string;
route?: string;
trigger?: 'route' | 'onClick';
onClick?: () => void;
}
export interface TabsProps {
items: TabsItem[];
activeTab?: number;
onChange?: (index: number) => void;
alignment?: 'left' | 'center' | 'right' | 'justify';
styles?: {
theme?: string;
padding?: string;
gap?: string;
borderBottom?: string;
height?: string;
tabLeftBorder?: string | boolean;
tabRightBorder?: string | boolean;
backgroundColor?: string;
};
}
declare const Tabs: React.FC<TabsProps>;
export interface TabProps {
label: string;
isActive: boolean;
isHovered?: boolean;
onClick: () => void;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
disabled?: boolean;
styles?: {
theme?: string;
padding?: string;
fontSize?: string;
fontWeight?: string | number;
};
}
export declare const Tab: React.FC<TabProps>;
export default Tabs;
//# sourceMappingURL=index.d.ts.map