office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
18 lines (17 loc) • 577 B
TypeScript
import * as React from 'react';
import { Link } from './Link';
export interface ILink {
/** Sets focus to the link. */
focus(): void;
}
export interface ILinkProps extends React.AllHTMLAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLElement | Link> {
/**
* Optional callback to access the ILink interface. Use this instead of ref for accessing
* the public methods and properties of the component.
*/
componentRef?: (component: ILink) => void;
/**
* Whether the link is disabled
*/
disabled?: boolean;
}