UNPKG

@geneui/components

Version:

The Gene UI components library designed for BI tools

47 lines (46 loc) 1.27 kB
import React from 'react'; import './LinkButton.scss'; interface ILinkButtonProps { /** * Href for <code>\<a\></code> tag if you don't pass instead of <code>\<a\></code> tag will be <code>\<button\></code> tag . */ href?: string; /** * Fires event when user click on LinkButton. * <br> * <code>(event: Event) => void </code> */ onClick?: (event: React.MouseEvent) => void; /** * Fires event when the element has been pressed. * <br> * <code>(event: Event) => void</code> */ onMouseDown?: (event: React.MouseEvent) => void; /** * The LinkButton additional className. */ className?: string; /** * Any valid React node. */ children?: React.ReactNode; /** * Icon to render before the LinkButton. Should be an icon component's type. */ iconBefore?: string; /** * Icon to render after the LinkButton. Should be an icon component's type. */ iconAfter?: string; /** * Makes the LinkButton disabled. */ isDisabled?: boolean; /** * aria-label for button or LinkButton. */ ariaLabel?: string; } declare const LinkButton: React.FC<ILinkButtonProps>; export { ILinkButtonProps, LinkButton as default };