mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
26 lines
566 B
TypeScript
26 lines
566 B
TypeScript
/// <reference types="svelte" />
|
|
|
|
export interface HeadActionProps {
|
|
/**
|
|
* Specify the href attribute
|
|
*/
|
|
href?: string;
|
|
|
|
/**
|
|
* Specify the icon from `carbon-icons-svelte` to render
|
|
*/
|
|
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
|
|
|
/**
|
|
* Specify the description
|
|
*/
|
|
description?: string;
|
|
}
|
|
|
|
export default class HeadAction {
|
|
$$prop_def: HeadActionProps;
|
|
$$slot_def: {};
|
|
|
|
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
|
|
$on(eventname: string, cb: (event: Event) => void): () => void;
|
|
}
|