import { Component } from "react"; import { SyntheticMouseEvent } from "../lib/SyntheticEvents"; export interface ButtonProps { onClick: (e: SyntheticMouseEvent) => void; onMouseDown?: (e: SyntheticMouseEvent) => void; onMouseUp?: (e: SyntheticMouseEvent) => void; onMouseEnter?: (e: SyntheticMouseEvent) => void; onMouseLeave?: (e: SyntheticMouseEvent) => void; } declare type ButtonState = { down: boolean; }; /** * A simple Button component which can be used as a building block * for more complex button types. * * @example * * * * const styles = { * text: { * 'font-size': 18.0, * 'line-spacing': 1.6, * 'color': 'ff626262' * }, * button: { * 'justify-content': 'center', * 'align-items': 'center', * 'width': '100%', * 'height': '100%', * 'border-radius': 5.0, * 'border-width': 2.0, * 'border-color': 'ff626262' * } * }; * */ export declare class Button extends Component { private _ref; constructor(props: ButtonProps); handleDown: (e: SyntheticMouseEvent) => void; handleUp: (e: SyntheticMouseEvent) => void; render: () => JSX.Element; } export {};