import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set an id for the top-level element. * Without one, the panel takes `{tabId}-panel` from the tab at its position. * Prefer a stable value when pairing panels with dynamic tabs. * @default uniqueId() */ id?: string; /** * Set to `true` to defer mounting panel content until this tab is first selected * @default false */ lazy?: boolean; /** * Set to `true` to unmount panel content when the tab is deselected * @default false */ unmountOnHide?: boolean; /** * Set to `true` to remove the panel's horizontal padding so its content * lines up with the tab list's leading edge * @default false */ flush?: boolean; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TabContentProps = Omit<$RestProps, keyof $Props> & $Props; export default class TabContent extends SvelteComponentTyped< TabContentProps, Record, { default: Record } > {}