reblend-ui
Version:
Utilities for creating robust overlay components
16 lines (15 loc) • 553 B
TypeScript
import { ComponentRef, HTMLAttributes } from 'reblendjs';
export declare function isTrivialHref(href?: string): boolean;
export interface AnchorProps extends HTMLAttributes<HTMLElement> {
href?: string;
disabled?: boolean;
role?: string;
tabIndex?: number;
ref?: ComponentRef<HTMLAnchorElement>;
}
/**
* 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: Reblend.FC<AnchorProps>;
export default Anchor;