UNPKG

@visactor/react-vtable

Version:
28 lines (27 loc) 905 B
import type { BackgroundAttributes, Cursor, IRectGraphicAttribute, ITextGraphicAttribute, Padding, Tag } from '@visactor/vtable/es/vrender'; import React from 'react'; interface ButtonStateStyle { textStyle?: { hover?: Partial<ITextGraphicAttribute>; disabled?: Partial<ITextGraphicAttribute>; }; panelStyle?: { hover?: Partial<IRectGraphicAttribute>; disabled?: Partial<IRectGraphicAttribute>; }; } export interface ButtonProps { children?: string; textStyle?: Partial<ITextGraphicAttribute>; padding?: Padding; panelStyle?: BackgroundAttributes; minWidth?: number; maxWidth?: number; visible?: boolean; state?: ButtonStateStyle; disabled?: boolean; cursor?: Cursor; onClick?: (e: Event) => void; } export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<Tag>>; export {};