UNPKG

@kitten-science/kitten-scientists

Version:

Add-on for the wonderful incremental browser game: https://kittensgame.com/web/

26 lines 951 B
import { UiComponent, type UiComponentOptions } from "./UiComponent.js"; export type IconButtonOptions = ThisType<IconButton> & UiComponentOptions & { readonly readOnly?: boolean; readonly inactive?: boolean; readonly onClick: (event?: MouseEvent) => void | Promise<void>; }; /** * A button that is visually represented through an SVG element. */ export declare class IconButton extends UiComponent { readonly options: IconButtonOptions; readOnly: boolean; inactive: boolean; /** * Constructs an `IconButton`. * * @param host A reference to the host. * @param pathData The SVG path data of the icon. * @param title The `title` of the element. * @param options Options for the icon button. */ constructor(parent: UiComponent, pathData: string, title: string, options?: IconButtonOptions); toString(): string; click(): Promise<void>; } //# sourceMappingURL=IconButton.d.ts.map