import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set an id for the panel element. * Prefer a stable value when switches are added or removed. * @default uniqueId() */ id?: string; /** * Set to `true` to defer mounting panel content until its switch is first selected * @default false */ lazy?: boolean; /** * Set to `true` to unmount panel content when its switch is deselected * @default false */ unmountOnHide?: boolean; /** * Obtain a reference to the panel HTML element. * @default null */ ref?: null | HTMLDivElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type SwitchPanelProps = Omit<$RestProps, keyof $Props> & $Props; export default class SwitchPanel extends SvelteComponentTyped< SwitchPanelProps, Record, { default: Record } > {}