/// import type { SvelteComponentTyped } from "svelte"; export interface HeaderActionProps extends svelte.JSX.HTMLAttributes { /** * Set to `true` to open the panel * @default false */ isOpen?: boolean; /** * Specify the icon to render when the action panel is closed. * Defaults to `` * @default undefined */ icon?: typeof import("svelte").SvelteComponent; /** * Specify the icon to render when the action panel is open. * Defaults to `` * @default undefined */ closeIcon?: typeof import("svelte").SvelteComponent; /** * Specify the text * Alternatively, use the named slot "text" (e.g.,
...
) * @default undefined */ text?: string; /** * Obtain a reference to the button HTML element * @default null */ ref?: null | HTMLButtonElement; /** * Customize the panel transition (i.e., `transition:slide`). * Set to `false` to disable the transition * @default { duration: 200 } */ transition?: false | import("svelte/transition").SlideParams; /** * Set to `true` to prevent the panel from closing when clicking outside * @default false */ preventCloseOnClickOutside?: boolean; [key: `data-${string}`]: any; } export default class HeaderAction extends SvelteComponentTyped< HeaderActionProps, { open: CustomEvent; close: CustomEvent; click: WindowEventMap["click"]; }, { default: {}; closeIcon: {}; icon: {}; text: {} } > {}