Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123637631
SafeAnchor.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 28, 19:47
Size
775 B
Mime Type
text/x-java
Expires
Wed, Jul 30, 19:47 (2 d)
Engine
blob
Format
Raw Data
Handle
27706340
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
SafeAnchor.d.ts
View Options
import React from 'react';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
export interface SafeAnchorProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
href?: string;
disabled?: boolean;
tabIndex?: number;
}
declare type SafeAnchor = BsPrefixRefForwardingComponent<'a', SafeAnchorProps>;
/**
* There are situations due to browser quirks or Bootstrap CSS where
* an anchor tag is needed, when semantically a button tag is the
* better choice. SafeAnchor ensures that when an anchor is used like a
* button its accessible. It also emulates input `disabled` behavior for
* links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
*/
declare const SafeAnchor: SafeAnchor;
export default SafeAnchor;
Event Timeline
Log In to Comment