carbon-components-svelte/types/UIShell/HeaderGlobalAction.d.ts

30 lines
732 B
TypeScript

/// <reference types="svelte" />
export interface HeaderGlobalActionProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
/**
* Set to `true` to use the active variant
* @default false
*/
isActive?: boolean;
/**
* Specify the icon to render
*/
icon?: import("carbon-icons-svelte").CarbonIcon;
/**
* Obtain a reference to the HTML button element
* @default null
*/
ref?: null | HTMLButtonElement;
}
export default class HeaderGlobalAction {
$$prop_def: HeaderGlobalActionProps;
$$slot_def: {
default: {};
};
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
$on(eventname: string, cb: (event: Event) => void): () => void;
}