mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
28 lines
673 B
TypeScript
28 lines
673 B
TypeScript
/// <reference types="svelte" />
|
|
import { SvelteComponentTyped } from "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?: typeof import("carbon-icons-svelte").CarbonIcon;
|
|
|
|
/**
|
|
* Obtain a reference to the HTML button element
|
|
* @default null
|
|
*/
|
|
ref?: null | HTMLButtonElement;
|
|
}
|
|
|
|
export default class HeaderGlobalAction extends SvelteComponentTyped<
|
|
HeaderGlobalActionProps,
|
|
{ click: WindowEventMap["click"] },
|
|
{ default: {} }
|
|
> {}
|