import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonActionSetContext = { size: import("svelte/store").Writable<"small" | "field" | "default" | "lg" | "xl">; }; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the size of the action set. Different button arrangements are * used at different sizes to make the best use of available space. Also * sets the default size for child `Button`s that don't set their own * `size`. * @default "md" */ size?: "sm" | "md" | "lg" | "xl" | "2xl"; /** * Set to `true` to prevent automatic stacking, even when `size` would * normally trigger it (`"sm"`, or `"md"` with more than two actions). * @default false */ disableStacking?: boolean; /** * Set to `true` to stick the action set to the bottom of its nearest * scroll container, for example a save bar under a long form. * @default false */ sticky?: boolean; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ActionSetProps = Omit<$RestProps, keyof $Props> & $Props; export default class ActionSet extends SvelteComponentTyped< ActionSetProps, Record, { default: Record } > {}