import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonToolbarContext = { overflowVisible: import("svelte/store").Writable; setOverflowVisible: (visible: boolean) => void; batchActionsActive: import("svelte/store").Writable; getRef: () => HTMLElement | null; toolbarSize: import("svelte/store").Writable<"xs" | "sm" | "default">; }; type $RestProps = SvelteHTMLElements["section"]; type $Props = { /** * Specify the toolbar size. * If unset, the size is inherited from the parent `DataTable` * ("xs" for "compact", "sm" for "short", "default" otherwise). * Also accepts Carbon v11's `"lg"` (`"default"`). */ size?: "xs" | "sm" | "default" | "lg" | undefined; /** * Specify the ARIA label for the toolbar. * Defaults to "data table toolbar" inside a `DataTable`, and to no label * outside one. */ ariaLabel?: string | undefined; /** * Set to `true` to keep the toolbar pinned while its scroll container scrolls. * @default false */ sticky?: boolean; /** * Distance from the top edge while stuck. Numbers are treated as pixels; * strings may be any CSS length (for example `"3rem"`). * * If unset, defaults to `0`, or to the fixed UI Shell header height * (48px) when a `Header` is rendered on the page, so the toolbar doesn't * stick underneath it. Set explicitly (including `0`) to opt out. */ stickyOffset?: number | string | undefined; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ToolbarProps = Omit<$RestProps, keyof $Props> & $Props; export default class Toolbar extends SvelteComponentTyped< ToolbarProps, Record, { default: Record } > {}