Socket
Socket
Sign inDemoInstall

@govuk-react/checkbox

Package Overview
Dependencies
26
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @govuk-react/checkbox

Styled checkbox component, also displaying label.


Version published
Weekly downloads
3.1K
decreased by-14.72%
Maintainers
5
Install size
238 kB
Created
Weekly downloads
 

Readme

Source

Checkbox

Import

  import Checkbox from '@govuk-react/checkbox';

Let users select one or more options by using the checkboxes component.

  • https://govuk-react.github.io/govuk-react/?path=/docs/checkbox
  • https://design-system.service.gov.uk/components/checkboxes/

Properties

PropRequiredDefaultTypeDescription
about``````string
accept``````string
accessKey``````string
alt``````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"step"
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"true"
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.
autoCapitalize``````string
autoComplete``````string
autoCorrect``````string
autoFocus``````boolean
autoSave``````string
capture``````stringboolean
checked``````boolean
childrentrue``````ReactNodeText content for checkbox
classNameundefinedstringCSS Classname for outermost container
color``````string
contentEditable``````Booleanish"inherit"
contextMenu``````string
crossOrigin``````string
dangerouslySetInnerHTML``````{ __html: string; }
datatype``````string
defaultChecked``````boolean
defaultValue``````stringnumber
dir``````string
disabled``````boolean
draggable``````Booleanish
form``````string
formAction``````string
formEncType``````string
formMethod``````string
formNoValidate``````boolean
formTarget``````string
height``````stringnumber
hidden``````boolean
hintundefinedReactNode
id``````string
inlist``````any
inputMode``````"email""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
list``````string
max``````stringnumber
maxLength``````number
min``````stringnumber
minLength``````number
multiple``````boolean
name``````string
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``````ChangeEventHandler
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
pattern``````string
placeholder``````string
prefix``````string
property``````string
radioGroup``````string
readOnly``````boolean
ref``````Ref
required``````boolean
resource``````string
results``````number
role``````AriaRole
security``````string
size``````number
slot``````string
spellCheck``````Booleanish
src``````string
step``````stringnumber
style``````CSSProperties
suppressContentEditableWarning``````boolean
suppressHydrationWarning``````boolean
tabIndex``````number
title``````string
translate``````"yes""no"
type``````HTMLInputTypeAttribute
typeof``````string
unselectable``````"on""off"
value``````stringnumber
vocab``````string
width``````stringnumber

FAQs

Last updated on 07 Oct 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc