@visactor/react-vtable
Version:
The react version of VTable
31 lines (30 loc) • 954 B
TypeScript
import type { BackgroundAttributes, Cursor, IRectGraphicAttribute, ITextGraphicAttribute, Padding, Tag } from '@visactor/vtable/es/vrender';
import React from 'react';
interface LinkStateStyle {
textStyle?: {
hover?: Partial<ITextGraphicAttribute>;
disabled?: Partial<ITextGraphicAttribute>;
};
panelStyle?: {
hover?: Partial<IRectGraphicAttribute>;
disabled?: Partial<IRectGraphicAttribute>;
};
}
export interface LinkProps {
children?: string;
textStyle?: Partial<ITextGraphicAttribute>;
padding?: Padding;
space?: number;
panelStyle?: BackgroundAttributes;
minWidth?: number;
maxWidth?: number;
visible?: boolean;
state?: LinkStateStyle;
disabled?: boolean;
icon?: boolean;
cursor?: Cursor;
href?: string;
onClick?: (e: Event) => void;
}
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<Tag>>;
export {};