fui-fancyui
Version:
FancyUI Libary
11 lines (10 loc) • 382 B
TypeScript
import { default as React } from 'react';
type THTMLButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
as?: 'button';
};
type THTMLAnchorProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
as: 'a';
};
type TActionWrapperProps = THTMLButtonProps | THTMLAnchorProps;
declare const ActionWrapper: React.FC<TActionWrapperProps>;
export default ActionWrapper;