56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
import * as React from 'react';
|
|
export interface Props {
|
|
/**
|
|
* Sets a CSS class on the component.
|
|
*/
|
|
className?: string,
|
|
id?: string;
|
|
/**
|
|
* A key used to uniquely identify the element within an Array
|
|
*/
|
|
key?: string,
|
|
/**
|
|
* Inline style
|
|
*/
|
|
style?: any,
|
|
/**
|
|
* Tooltip text
|
|
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip.
|
|
* @see http://react-toolbox.com/#/components/tooltip
|
|
*/
|
|
tooltip?: string,
|
|
/**
|
|
* Amount of time in miliseconds spent before the tooltip is visible.
|
|
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip.
|
|
* @see http://react-toolbox.com/#/components/tooltip
|
|
*/
|
|
tooltipDelay?: number,
|
|
/**
|
|
* If true, the Tooltip hides after a click in the host component.
|
|
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip.
|
|
* @default true
|
|
* @see http://react-toolbox.com/#/components/tooltip
|
|
*/
|
|
tooltipHideOnClick?: boolean,
|
|
}
|
|
|
|
export interface Iconic {
|
|
/**
|
|
* Value of the icon (See icon component).
|
|
*/
|
|
icon?: string | __React.ReactElement<any> | __React.ReactHTMLElement<any>,
|
|
}
|
|
export interface LinkProps extends Props, Iconic {
|
|
href: string,
|
|
/**
|
|
* The text string used for the text content of the link.
|
|
*/
|
|
label: string,
|
|
/**
|
|
* Sets a count number useful to display in the page how many times was visited for example.
|
|
*/
|
|
count?: number,
|
|
}
|
|
export default class Link extends React.Component<LinkProps, {}> {
|
|
render(): React.DOMElement<any, any>;
|
|
} |