import { type ComponentPropsWithoutRef } from 'react'; /** * Props for the Tabs component. */ export type TabsProps = { /** * The ID of the currently selected tab. * Can be a string value. */ selectedTabId?: string; /** * Callback function that is called when the selected tab changes. * Receives the new tab ID as an argument. */ onSelectedTabChange?: (tabId: string) => void; /** * The DOM node where the tab container should be rendered. * * If provided, the container is rendered inside this node. Otherwise, a * suitable DOM node is chosen automatically. */ targetDOMNode?: HTMLElement | null; /** * Enable auto unmounting of the tab panel content when it's not displayed. * When true, the tab panel content will return null instead of hiding via CSS. * * @default true */ enableAutoUnmount?: boolean; } & Pick, 'className' | 'style' | 'children'>;