mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
30 lines
732 B
TypeScript
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;
|
|
}
|