import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonTableContainerContext = { titleId: string; descriptionId: string; hasTitle: import("svelte/store").Writable; hasDescription: import("svelte/store").Writable; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the title of the data table * @default "" */ title?: string; /** * Specify the description of the data table * @default "" */ description?: string; /** * Set to `true` to enable a sticky header * @default false */ stickyHeader?: boolean; /** * Set to `true` to use static width * @default false */ useStaticWidth?: boolean; /** * Set an id for the container element. * The title and description ids derive from it as `{id}-title` and * `{id}-description`. They are read once when the component is created. * @default uniqueId() */ id?: string; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TableContainerProps = Omit<$RestProps, keyof $Props> & $Props; export default class TableContainer extends SvelteComponentTyped< TableContainerProps, Record, { default: Record } > {}