@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
22 lines (21 loc) • 812 B
TypeScript
interface TabItem {
id: number;
title: string;
content: React.ReactNode;
}
interface ContainedTabProps {
tabs: TabItem[];
activeTab?: number;
onTabChange?: (index: number) => void;
tabClassName?: string;
/** Title to display above the tabs */
title?: string;
/** Optional description text below the title */
description?: string;
/** Whether the tab buttons should stick to the top when scrolling */
isSticky?: boolean;
/** Whether tabs should take full width of container. Default is true */
isFullWidth?: boolean;
}
declare const ContainedTab: ({ tabs, activeTab: controlledActiveTab, onTabChange, tabClassName, title, description, isSticky, isFullWidth, }: ContainedTabProps) => import("react/jsx-runtime").JSX.Element;
export default ContainedTab;