mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
* chore(deps-dev): upgrade `sveld` to v0.18.1 * Run "yarn build:docs" * test: assert that `data-*` attributes are valid
31 lines
727 B
TypeScript
31 lines
727 B
TypeScript
/// <reference types="svelte" />
|
|
import type { 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
|
|
* @default undefined
|
|
*/
|
|
icon?: typeof import("svelte").SvelteComponent;
|
|
|
|
/**
|
|
* Obtain a reference to the HTML button element
|
|
* @default null
|
|
*/
|
|
ref?: null | HTMLButtonElement;
|
|
|
|
[key: `data-${string}`]: any;
|
|
}
|
|
|
|
export default class HeaderGlobalAction extends SvelteComponentTyped<
|
|
HeaderGlobalActionProps,
|
|
{ click: WindowEventMap["click"] },
|
|
{ default: {} }
|
|
> {}
|