import { ComponentProps, ReactNode } from 'react'; import { TabContent } from './CardTabs.styles'; export interface CardTab { id: T; label: ReactNode; /** DOM id of the tab button, e.g. a deep-link anchor. */ domId?: string; /** Shown but not selectable; skipped by the arrow keys. */ disabled?: boolean; } export interface CardTabsProps { tabs: CardTab[]; activeId: T; /** NoInfer: `T` comes from the tabs, so a `useState` setter can be passed directly. */ onSelect: (id: NoInfer) => void; /** Id of the `TabPanel` the tabs control. */ panelId: string; label?: string; /** Tabs hug their labels, left-aligned, instead of sharing the row equally. */ fit?: boolean; /** Test-automation hook: each tab gets `data-cy="-"`. */ dataCy?: string; /** Space kept above a tab scrolled into view (deep links), e.g. the sticky header's height. px or CSS length. */ scrollMarginTop?: number | string; className?: string; } /** * The card tab bar (Figma "Tab List - Main Actions"), with the white surface sliding to the * active tab. Equal-width tabs place it from the index, so the server render is exact; `fit` * tabs measure it, the active tab painting its own surface until then. */ export declare const CardTabs: ({ tabs, activeId, onSelect, panelId, label, fit, dataCy, scrollMarginTop, className, }: CardTabsProps) => import("react/jsx-runtime").JSX.Element; export type TabPanelProps = Omit, '$animate'> & { /** The active tab: content fades in each time it changes, not on first render. */ activeKey: string; /** Fade in on first render too: content that only mounts on a click, never on page load. */ appear?: boolean; /** Set false to switch content without the fade. */ animate?: boolean; }; export declare const TabPanel: ({ activeKey, appear, animate: animateProp, children, ...props }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;