///
import { AppearanceProps, MarginProps } from "@apptane/react-ui-core";
import { IconData } from "@apptane/react-ui-icon";
import { HyperlinkAppearance, HyperlinkVisualAppearance } from "@apptane/react-ui-theme";
import PropTypes from "prop-types";
import { TextProps } from "./Text.types.js";
export interface HyperlinkProps extends MarginProps, TextProps, AppearanceProps {
/**
* Indicates whether link must be rendered decorated (underlined)
* when in hover or focused state.
*/
decorated?: boolean;
/**
* Callback invoked when link is clicked.
*/
onClick?: React.MouseEventHandler;
/**
* Anchor reference.
*/
href?: string;
/**
* Anchor title.
*/
title?: string;
/**
* Anchor target.
*/
target?: string;
/**
* Indicates whether link must be rendered in a disabled state.
*/
disabled?: boolean;
/**
* Size of the icon in pixels. Icon has the same width and height.
* Defaults to 16 pixels.
*/
iconSize?: number;
/**
* Name of the icon to render after the link's content.
* Must be a name supported by `Icon` component.
*/
iconAfterName?: string;
/**
* Vector data of the icon to render after the link's content.
* See `Icon` component for details.
*/
iconAfterData?: IconData;
/**
* Name of the icon to render before the link's content.
* Must be a name supported by `Icon` component.
*/
iconBeforeName?: string;
/**
* Vector data of the icon to render before the link's content.
* See `Icon` component for details.
*/
iconBeforeData?: IconData;
/**
* Indicates whether it must be rendered as a block element.
*/
block?: boolean;
}
export declare const HyperlinkPropTypes: {
colorMode: PropTypes.Requireable;
appearance: PropTypes.Requireable any)>;
decorated: PropTypes.Requireable;
onClick: PropTypes.Requireable<(...args: any[]) => any>;
disabled: PropTypes.Requireable;
href: PropTypes.Requireable;
title: PropTypes.Requireable;
target: PropTypes.Requireable;
iconSize: PropTypes.Requireable;
iconAfterName: PropTypes.Requireable;
iconAfterData: PropTypes.Requireable;
svg: PropTypes.Requireable;
}>>;
iconBeforeName: PropTypes.Requireable;
iconBeforeData: PropTypes.Requireable;
svg: PropTypes.Requireable;
}>>;
block: PropTypes.Requireable;
margin: PropTypes.Requireable;
marginTop: PropTypes.Requireable;
marginRight: PropTypes.Requireable;
marginBottom: PropTypes.Requireable;
marginLeft: PropTypes.Requireable;
m: PropTypes.Requireable;
mt: PropTypes.Requireable;
mr: PropTypes.Requireable;
mb: PropTypes.Requireable;
ml: PropTypes.Requireable;
color: PropTypes.Requireable;
alignment: PropTypes.Requireable;
nowrap: PropTypes.Requireable;
ellipsis: PropTypes.Requireable;
category: PropTypes.Requireable;
size: PropTypes.Requireable;
weight: PropTypes.Requireable;
lineHeight: PropTypes.Requireable;
spacing: PropTypes.Requireable;
mono: PropTypes.Requireable;
};