Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-react/error-text

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/error-text

Renders a styled span element containing children provided.

  • 0.10.0
  • npm
  • Socket score

Version published
Weekly downloads
5.4K
decreased by-11.63%
Maintainers
5
Weekly downloads
 
Created
Source

ErrorText

Import

  import ErrorText from '@govuk-react/error-text';

Follow the validation pattern and show an error message when there is a validation error. In the error message explain what went wrong and how to fix it.

Properties

PropRequiredDefaultTypeDescription
about``````string
accessKey``````string
aria-activedescendant``````stringIdentifies 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``````numberDefines the total number of columns in a table, grid, or treegrid.
@see aria-colindex.
aria-colindex``````numberDefines 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``````numberDefines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
@see aria-colindex
@see aria-rowspan.
aria-controls``````stringIdentifies the element (or elements) whose contents or presence are controlled by the current element.
@see aria-owns.
aria-current``````boolean"time"
aria-describedby``````stringIdentifies the element (or elements) that describes the object.
@see aria-labelledby
aria-details``````stringIdentifies the element that provides a detailed, extended description for the object.
@see aria-describedby.
aria-disabled``````boolean"true"
aria-dropeffect``````"link""none"
aria-errormessage``````stringIdentifies the element that provides an error message for the object.
@see aria-invalid
@see aria-describedby.
aria-expanded``````boolean"true"
aria-flowto``````stringIdentifies 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``````stringIndicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
aria-label``````stringDefines a string value that labels the current element.
@see aria-labelledby.
aria-labelledby``````stringIdentifies the element (or elements) that labels the current element.
@see aria-describedby.
aria-level``````numberDefines 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``````stringIdentifies 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``````stringDefines 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``````numberDefines 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``````stringDefines a human-readable, author-localized description for the role of an element.
aria-rowcount``````numberDefines the total number of rows in a table, grid, or treegrid.
@see aria-rowindex.
aria-rowindex``````numberDefines 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``````numberDefines 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``````numberDefines 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``````numberDefines the maximum allowed value for a range widget.
aria-valuemin``````numberDefines the minimum allowed value for a range widget.
aria-valuenow``````numberDefines the current value for a range widget.
@see aria-valuetext.
aria-valuetext``````stringDefines the human readable text alternative of aria-valuenow for a range widget.
as``````undefined
autoCapitalize``````string
autoCorrect``````string
autoSave``````string
className``````string
color``````string
contentEditable``````Booleanish"inherit"
contextMenu``````string
dangerouslySetInnerHTML``````{ __html: string; }
datatype``````string
defaultChecked``````boolean
defaultValue``````stringnumber
dir``````string
draggable``````Booleanish
forwardedAs``````undefined
hidden``````boolean
id``````string
inlist``````any
inputMode``````"text""search"
is``````stringSpecify 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
margin``````MarginMargin[]
mb``````stringnumber
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
padding``````PaddingPadding[]
placeholder``````string
prefix``````string
property``````string
radioGroup``````string
ref``````Ref
resource``````string
results``````number
role``````AriaRole
security``````string
slot``````string
spellCheck``````Booleanish
style``````CSSProperties
suppressContentEditableWarning``````boolean
suppressHydrationWarning``````boolean
tabIndex``````number
theme``````any
title``````string
translate``````"yes""no"
typeof``````string
unselectable``````"on""off"
vocab``````string

FAQs

Package last updated on 07 Oct 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc