mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
19 lines
627 B
TypeScript
19 lines
627 B
TypeScript
import { UIEvent, UIKeyboardEvent } from "./event.js";
|
|
//#region src/dom/ui/button.d.ts
|
|
interface ButtonOptions {
|
|
onActivate: (event: UIEvent) => void;
|
|
isDisabled: () => boolean;
|
|
}
|
|
interface ButtonProps {
|
|
role: 'button';
|
|
tabIndex: 0;
|
|
onClick: (event: UIEvent) => void;
|
|
onPointerDown: (event: UIEvent) => void;
|
|
onMouseDown: (event: UIEvent) => void;
|
|
onKeyDown: (event: UIKeyboardEvent) => void;
|
|
onKeyUp: (event: UIKeyboardEvent) => void;
|
|
}
|
|
declare function createButton(options: ButtonOptions): ButtonProps;
|
|
//#endregion
|
|
export { ButtonOptions, ButtonProps, createButton };
|
|
//# sourceMappingURL=button.d.ts.map
|