import { Widget } from "./Widget"; import { Action } from "../../Action"; /** * A [[Widget]] that holds an [[Action]], and when pressed on the client the action is run * * @example * ```jsx * new Button({icon:"power-on",action: new HttpAction({ * name:"on", * method:"GET", * base:"https://device.ip", * path:"turnOn" * }) * }) * //JSX *