carbon-components-svelte/types/UIShell/HeaderGlobalAction.svelte.d.ts
militant_gnome bf60e0c0f3 Revert "HeaderGlobalActions: type definition, doc and test updated"
This reverts commit 733ab2ccedcb4da95257d11d7bfd68de25044d9c.
2024-02-24 14:15:01 -08:00

30 lines
702 B
TypeScript

import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["button"];
export interface HeaderGlobalActionProps extends RestProps {
/**
* Set to `true` to use the active variant
* @default false
*/
isActive?: boolean;
/**
* Specify the icon to render
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent<any>;
/**
* Obtain a reference to the HTML button element
* @default null
*/
ref?: HTMLButtonElement;
}
export default class HeaderGlobalAction extends SvelteComponentTyped<
HeaderGlobalActionProps,
{ click: WindowEventMap["click"] },
{}
> {}