Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@govuk-react/link
Advanced tools
import Link from '@govuk-react/link';
Link/Anchor element.
Prop | Required | Default | Type | Description |
---|---|---|---|---|
about | `````` | string | ||
accessKey | `````` | string | ||
aria-activedescendant | `````` | string | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. | |
aria-atomic | `````` | boolean | "true" | |
aria-autocomplete | `````` | "list" | "none" | |
aria-busy | `````` | boolean | "true" | |
aria-checked | `````` | boolean | "true" | |
aria-colcount | `````` | number | Defines the total number of columns in a table, grid, or treegrid. @see aria-colindex. | |
aria-colindex | `````` | number | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. @see aria-colcount @see aria-colspan. | |
aria-colspan | `````` | number | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-colindex @see aria-rowspan. | |
aria-controls | `````` | string | Identifies the element (or elements) whose contents or presence are controlled by the current element. @see aria-owns. | |
aria-current | `````` | boolean | "time" | |
aria-describedby | `````` | string | Identifies the element (or elements) that describes the object. @see aria-labelledby | |
aria-details | `````` | string | Identifies the element that provides a detailed, extended description for the object. @see aria-describedby. | |
aria-disabled | `````` | boolean | "true" | |
aria-dropeffect | `````` | "link" | "none" | |
aria-errormessage | `````` | string | Identifies the element that provides an error message for the object. @see aria-invalid @see aria-describedby. | |
aria-expanded | `````` | boolean | "true" | |
aria-flowto | `````` | string | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. | |
aria-grabbed | `````` | boolean | "true" | |
aria-haspopup | `````` | boolean | "dialog" | |
aria-hidden | `````` | boolean | "true" | |
aria-invalid | `````` | boolean | "true" | |
aria-keyshortcuts | `````` | string | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. | |
aria-label | `````` | string | Defines a string value that labels the current element. @see aria-labelledby. | |
aria-labelledby | `````` | string | Identifies the element (or elements) that labels the current element. @see aria-describedby. | |
aria-level | `````` | number | Defines the hierarchical level of an element within a structure. | |
aria-live | `````` | "off" | "assertive" | |
aria-modal | `````` | boolean | "true" | |
aria-multiline | `````` | boolean | "true" | |
aria-multiselectable | `````` | boolean | "true" | |
aria-orientation | `````` | "horizontal" | "vertical" | |
aria-owns | `````` | string | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. @see aria-controls. | |
aria-placeholder | `````` | string | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. | |
aria-posinset | `````` | number | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. @see aria-setsize. | |
aria-pressed | `````` | boolean | "true" | |
aria-readonly | `````` | boolean | "true" | |
aria-relevant | `````` | "text" | "additions" | |
aria-required | `````` | boolean | "true" | |
aria-roledescription | `````` | string | Defines a human-readable, author-localized description for the role of an element. | |
aria-rowcount | `````` | number | Defines the total number of rows in a table, grid, or treegrid. @see aria-rowindex. | |
aria-rowindex | `````` | number | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. @see aria-rowcount @see aria-rowspan. | |
aria-rowspan | `````` | number | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. @see aria-rowindex @see aria-colspan. | |
aria-selected | `````` | boolean | "true" | |
aria-setsize | `````` | number | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. @see aria-posinset. | |
aria-sort | `````` | "none" | "ascending" | |
aria-valuemax | `````` | number | Defines the maximum allowed value for a range widget. | |
aria-valuemin | `````` | number | Defines the minimum allowed value for a range widget. | |
aria-valuenow | `````` | number | Defines the current value for a range widget. @see aria-valuetext. | |
aria-valuetext | `````` | string | Defines the human readable text alternative of aria-valuenow for a range widget. | |
as | `````` | undefined | ||
autoCapitalize | `````` | string | ||
autoCorrect | `````` | string | ||
autoSave | `````` | string | ||
children | `````` | ReactNode | link contents | |
className | `````` | string | ||
color | `````` | string | ||
contentEditable | `````` | Booleanish | "inherit" | |
contextMenu | `````` | string | ||
dangerouslySetInnerHTML | `````` | { __html: string; } | ||
datatype | `````` | string | ||
defaultChecked | `````` | boolean | ||
defaultValue | `````` | string | number | |
dir | `````` | string | ||
download | `````` | any | ||
draggable | `````` | Booleanish | ||
forwardedAs | `````` | undefined | ||
hidden | `````` | boolean | ||
href | `````` | string | ||
hrefLang | `````` | string | ||
id | `````` | string | ||
inlist | `````` | any | ||
inputMode | `````` | "text" | "search" | |
is | `````` | string | Specify that a standard HTML element should behave like a defined custom built-in element @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is | |
itemID | `````` | string | ||
itemProp | `````` | string | ||
itemRef | `````` | string | ||
itemScope | `````` | boolean | ||
itemType | `````` | string | ||
key | `````` | Key | ||
lang | `````` | string | ||
media | `````` | string | ||
muted | undefined | boolean | show link in a "muted" (grey) style | |
noVisitedState | undefined | boolean | ensure there is no "visited" style | |
onAbort | `````` | ReactEventHandler | ||
onAbortCapture | `````` | ReactEventHandler | ||
onAnimationEnd | `````` | AnimationEventHandler | ||
onAnimationEndCapture | `````` | AnimationEventHandler | ||
onAnimationIteration | `````` | AnimationEventHandler | ||
onAnimationIterationCapture | `````` | AnimationEventHandler | ||
onAnimationStart | `````` | AnimationEventHandler | ||
onAnimationStartCapture | `````` | AnimationEventHandler | ||
onAuxClick | `````` | MouseEventHandler | ||
onAuxClickCapture | `````` | MouseEventHandler | ||
onBeforeInput | `````` | FormEventHandler | ||
onBeforeInputCapture | `````` | FormEventHandler | ||
onBlur | `````` | FocusEventHandler | ||
onBlurCapture | `````` | FocusEventHandler | ||
onCanPlay | `````` | ReactEventHandler | ||
onCanPlayCapture | `````` | ReactEventHandler | ||
onCanPlayThrough | `````` | ReactEventHandler | ||
onCanPlayThroughCapture | `````` | ReactEventHandler | ||
onChange | `````` | FormEventHandler | ||
onChangeCapture | `````` | FormEventHandler | ||
onClick | `````` | MouseEventHandler | ||
onClickCapture | `````` | MouseEventHandler | ||
onCompositionEnd | `````` | CompositionEventHandler | ||
onCompositionEndCapture | `````` | CompositionEventHandler | ||
onCompositionStart | `````` | CompositionEventHandler | ||
onCompositionStartCapture | `````` | CompositionEventHandler | ||
onCompositionUpdate | `````` | CompositionEventHandler | ||
onCompositionUpdateCapture | `````` | CompositionEventHandler | ||
onContextMenu | `````` | MouseEventHandler | ||
onContextMenuCapture | `````` | MouseEventHandler | ||
onCopy | `````` | ClipboardEventHandler | ||
onCopyCapture | `````` | ClipboardEventHandler | ||
onCut | `````` | ClipboardEventHandler | ||
onCutCapture | `````` | ClipboardEventHandler | ||
onDoubleClick | `````` | MouseEventHandler | ||
onDoubleClickCapture | `````` | MouseEventHandler | ||
onDrag | `````` | DragEventHandler | ||
onDragCapture | `````` | DragEventHandler | ||
onDragEnd | `````` | DragEventHandler | ||
onDragEndCapture | `````` | DragEventHandler | ||
onDragEnter | `````` | DragEventHandler | ||
onDragEnterCapture | `````` | DragEventHandler | ||
onDragExit | `````` | DragEventHandler | ||
onDragExitCapture | `````` | DragEventHandler | ||
onDragLeave | `````` | DragEventHandler | ||
onDragLeaveCapture | `````` | DragEventHandler | ||
onDragOver | `````` | DragEventHandler | ||
onDragOverCapture | `````` | DragEventHandler | ||
onDragStart | `````` | DragEventHandler | ||
onDragStartCapture | `````` | DragEventHandler | ||
onDrop | `````` | DragEventHandler | ||
onDropCapture | `````` | DragEventHandler | ||
onDurationChange | `````` | ReactEventHandler | ||
onDurationChangeCapture | `````` | ReactEventHandler | ||
onEmptied | `````` | ReactEventHandler | ||
onEmptiedCapture | `````` | ReactEventHandler | ||
onEncrypted | `````` | ReactEventHandler | ||
onEncryptedCapture | `````` | ReactEventHandler | ||
onEnded | `````` | ReactEventHandler | ||
onEndedCapture | `````` | ReactEventHandler | ||
onError | `````` | ReactEventHandler | ||
onErrorCapture | `````` | ReactEventHandler | ||
onFocus | `````` | FocusEventHandler | ||
onFocusCapture | `````` | FocusEventHandler | ||
onGotPointerCapture | `````` | PointerEventHandler | ||
onGotPointerCaptureCapture | `````` | PointerEventHandler | ||
onInput | `````` | FormEventHandler | ||
onInputCapture | `````` | FormEventHandler | ||
onInvalid | `````` | FormEventHandler | ||
onInvalidCapture | `````` | FormEventHandler | ||
onKeyDown | `````` | KeyboardEventHandler | ||
onKeyDownCapture | `````` | KeyboardEventHandler | ||
onKeyPress | `````` | KeyboardEventHandler | ||
onKeyPressCapture | `````` | KeyboardEventHandler | ||
onKeyUp | `````` | KeyboardEventHandler | ||
onKeyUpCapture | `````` | KeyboardEventHandler | ||
onLoad | `````` | ReactEventHandler | ||
onLoadCapture | `````` | ReactEventHandler | ||
onLoadStart | `````` | ReactEventHandler | ||
onLoadStartCapture | `````` | ReactEventHandler | ||
onLoadedData | `````` | ReactEventHandler | ||
onLoadedDataCapture | `````` | ReactEventHandler | ||
onLoadedMetadata | `````` | ReactEventHandler | ||
onLoadedMetadataCapture | `````` | ReactEventHandler | ||
onLostPointerCapture | `````` | PointerEventHandler | ||
onLostPointerCaptureCapture | `````` | PointerEventHandler | ||
onMouseDown | `````` | MouseEventHandler | ||
onMouseDownCapture | `````` | MouseEventHandler | ||
onMouseEnter | `````` | MouseEventHandler | ||
onMouseLeave | `````` | MouseEventHandler | ||
onMouseMove | `````` | MouseEventHandler | ||
onMouseMoveCapture | `````` | MouseEventHandler | ||
onMouseOut | `````` | MouseEventHandler | ||
onMouseOutCapture | `````` | MouseEventHandler | ||
onMouseOver | `````` | MouseEventHandler | ||
onMouseOverCapture | `````` | MouseEventHandler | ||
onMouseUp | `````` | MouseEventHandler | ||
onMouseUpCapture | `````` | MouseEventHandler | ||
onPaste | `````` | ClipboardEventHandler | ||
onPasteCapture | `````` | ClipboardEventHandler | ||
onPause | `````` | ReactEventHandler | ||
onPauseCapture | `````` | ReactEventHandler | ||
onPlay | `````` | ReactEventHandler | ||
onPlayCapture | `````` | ReactEventHandler | ||
onPlaying | `````` | ReactEventHandler | ||
onPlayingCapture | `````` | ReactEventHandler | ||
onPointerCancel | `````` | PointerEventHandler | ||
onPointerCancelCapture | `````` | PointerEventHandler | ||
onPointerDown | `````` | PointerEventHandler | ||
onPointerDownCapture | `````` | PointerEventHandler | ||
onPointerEnter | `````` | PointerEventHandler | ||
onPointerEnterCapture | `````` | PointerEventHandler | ||
onPointerLeave | `````` | PointerEventHandler | ||
onPointerLeaveCapture | `````` | PointerEventHandler | ||
onPointerMove | `````` | PointerEventHandler | ||
onPointerMoveCapture | `````` | PointerEventHandler | ||
onPointerOut | `````` | PointerEventHandler | ||
onPointerOutCapture | `````` | PointerEventHandler | ||
onPointerOver | `````` | PointerEventHandler | ||
onPointerOverCapture | `````` | PointerEventHandler | ||
onPointerUp | `````` | PointerEventHandler | ||
onPointerUpCapture | `````` | PointerEventHandler | ||
onProgress | `````` | ReactEventHandler | ||
onProgressCapture | `````` | ReactEventHandler | ||
onRateChange | `````` | ReactEventHandler | ||
onRateChangeCapture | `````` | ReactEventHandler | ||
onReset | `````` | FormEventHandler | ||
onResetCapture | `````` | FormEventHandler | ||
onScroll | `````` | UIEventHandler | ||
onScrollCapture | `````` | UIEventHandler | ||
onSeeked | `````` | ReactEventHandler | ||
onSeekedCapture | `````` | ReactEventHandler | ||
onSeeking | `````` | ReactEventHandler | ||
onSeekingCapture | `````` | ReactEventHandler | ||
onSelect | `````` | ReactEventHandler | ||
onSelectCapture | `````` | ReactEventHandler | ||
onStalled | `````` | ReactEventHandler | ||
onStalledCapture | `````` | ReactEventHandler | ||
onSubmit | `````` | FormEventHandler | ||
onSubmitCapture | `````` | FormEventHandler | ||
onSuspend | `````` | ReactEventHandler | ||
onSuspendCapture | `````` | ReactEventHandler | ||
onTimeUpdate | `````` | ReactEventHandler | ||
onTimeUpdateCapture | `````` | ReactEventHandler | ||
onTouchCancel | `````` | TouchEventHandler | ||
onTouchCancelCapture | `````` | TouchEventHandler | ||
onTouchEnd | `````` | TouchEventHandler | ||
onTouchEndCapture | `````` | TouchEventHandler | ||
onTouchMove | `````` | TouchEventHandler | ||
onTouchMoveCapture | `````` | TouchEventHandler | ||
onTouchStart | `````` | TouchEventHandler | ||
onTouchStartCapture | `````` | TouchEventHandler | ||
onTransitionEnd | `````` | TransitionEventHandler | ||
onTransitionEndCapture | `````` | TransitionEventHandler | ||
onVolumeChange | `````` | ReactEventHandler | ||
onVolumeChangeCapture | `````` | ReactEventHandler | ||
onWaiting | `````` | ReactEventHandler | ||
onWaitingCapture | `````` | ReactEventHandler | ||
onWheel | `````` | WheelEventHandler | ||
onWheelCapture | `````` | WheelEventHandler | ||
ping | `````` | string | ||
placeholder | `````` | string | ||
prefix | `````` | string | ||
property | `````` | string | ||
radioGroup | `````` | string | ||
ref | `````` | Ref | ||
referrerPolicy | `````` | HTMLAttributeReferrerPolicy | ||
rel | `````` | string | ||
resource | `````` | string | ||
results | `````` | number | ||
role | `````` | AriaRole | ||
security | `````` | string | ||
slot | `````` | string | ||
spellCheck | `````` | Booleanish | ||
style | `````` | CSSProperties | ||
suppressContentEditableWarning | `````` | boolean | ||
suppressHydrationWarning | `````` | boolean | ||
tabIndex | `````` | number | ||
target | `````` | HTMLAttributeAnchorTarget | ||
textColour | undefined | boolean | ensure link is shown in plain text colour | |
theme | `````` | any | ||
title | `````` | string | ||
translate | `````` | "yes" | "no" | |
type | `````` | string | ||
typeof | `````` | string | ||
unselectable | `````` | "on" | "off" | |
vocab | `````` | string |
FAQs
govuk-react Link component.
The npm package @govuk-react/link receives a total of 4,276 weekly downloads. As such, @govuk-react/link popularity was classified as popular.
We found that @govuk-react/link demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.