You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
552 B
15 lines
552 B
import * as React from 'react';
|
|
export declare function isTrivialHref(href?: string): boolean;
|
|
export interface AnchorProps extends React.HTMLAttributes<HTMLElement> {
|
|
href?: string;
|
|
disabled?: boolean;
|
|
role?: string;
|
|
tabIndex?: number;
|
|
}
|
|
/**
|
|
* An generic `<a>` component that covers a few A11y cases, ensuring that
|
|
* cases where the `href` is missing or trivial like "#" are treated like buttons.
|
|
*/
|
|
declare const Anchor: React.ForwardRefExoticComponent<AnchorProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
export default Anchor;
|