AriaAttrs

trait AriaAttrs[A[_]]

ARIA is a set of special accessibility attributes which can be added to any markup, but is especially suited to HTML. The role attribute defines what the general type of object is (such as an article, alert, or slider). Additional ARIA attributes provide other useful properties, such as a description for a form or the current value of a progressbar.

ARIA is a set of special accessibility attributes which can be added to any markup, but is especially suited to HTML. The role attribute defines what the general type of object is (such as an article, alert, or slider). Additional ARIA attributes provide other useful properties, such as a description for a form or the current value of a progressbar.

MDN

Type Params
A

Attribute, canonically com.raquo.domtypes.generic.keys.HtmlAttr

class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val activeDescendant: A[String]

Identifies the currently active descendant of a composite widget.

Identifies the currently active descendant of a composite widget.

lazy val atomic: A[Boolean]

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. See related relevant.

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. See related relevant.

lazy val autoComplete: A[String]

Indicates whether user input completion suggestions are provided.

Indicates whether user input completion suggestions are provided.

Enumerated: "inline" | "list" | "both" | "none" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-autocomplete

lazy val busy: A[Boolean]

Indicates whether an element, and its subtree, are currently being updated.

Indicates whether an element, and its subtree, are currently being updated.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-busy

lazy val checked: A[String]

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. See related pressed and selected.

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. See related pressed and selected.

Enumerated: Tristate – "true" | "false" | "mixed" | undefined (default)

  • undefined means the element does not support being checked

https://www.w3.org/TR/wai-aria/states_and_properties#aria-checked

lazy val controls: A[String]

Identifies the element (or elements) whose contents or presence are controlled by the current element. See related owns.

Identifies the element (or elements) whose contents or presence are controlled by the current element. See related owns.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-controls

lazy val describedBy: A[String]

Identifies the element (or elements) that describes the object. See related labelledBy.

Identifies the element (or elements) that describes the object. See related labelledBy.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-describedby

lazy val disabled: A[Boolean]

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. See related hidden and readOnly.

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. See related hidden and readOnly.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-disabled

lazy val dropEffect: A[String]

Indicates what functions can be performed when the dragged object is released on the drop target. This allows assistive technologies to convey the possible drag options available to users, including whether a pop-up menu of choices is provided by the application. Typically, drop effect functions can only be provided once an object has been grabbed for a drag operation as the drop effect functions available are dependent on the object being dragged.

Indicates what functions can be performed when the dragged object is released on the drop target. This allows assistive technologies to convey the possible drag options available to users, including whether a pop-up menu of choices is provided by the application. Typically, drop effect functions can only be provided once an object has been grabbed for a drag operation as the drop effect functions available are dependent on the object being dragged.

Enumerated: "copy" | "move" | "link" | "execute" | "popup" | "none" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-dropeffect

lazy val expanded: A[Boolean]

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-expanded

lazy val flowTo: A[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.

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.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-flowto

lazy val grabbed: A[Boolean]

Indicates an element's "grabbed" state in a drag-and-drop operation.

Indicates an element's "grabbed" state in a drag-and-drop operation.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-grabbed

lazy val hasPopup: A[Boolean]

Indicates that the element has a popup context menu or sub-level menu.

Indicates that the element has a popup context menu or sub-level menu.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-haspopup

lazy val hidden: A[Boolean]

Indicates that the element and all of its descendants are not visible or perceivable to any user as implemented by the author. See related disabled.

Indicates that the element and all of its descendants are not visible or perceivable to any user as implemented by the author. See related disabled.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden

lazy val invalid: A[String]

Indicates the entered value does not conform to the format expected by the application.

Indicates the entered value does not conform to the format expected by the application.

Enumerated: "grammar" | "spelling" | "true" | "false" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-invalid

lazy val label: A[String]

Defines a string value that labels the current element. See related labelledBy.

Defines a string value that labels the current element. See related labelledBy.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-label

lazy val labelledBy: A[String]

Identifies the element (or elements) that labels the current element. See related label and describedBy.

Identifies the element (or elements) that labels the current element. See related label and describedBy.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-labelledby

lazy val level: A[Int]

Defines the hierarchical level of an element within a structure.

Defines the hierarchical level of an element within a structure.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-level

lazy val live: A[String]

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

Enumerated: "polite" | "assertive" | "off" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-live

lazy val multiLine: A[Boolean]

Indicates whether a text box accepts multiple lines of input or only a single line.

Indicates whether a text box accepts multiple lines of input or only a single line.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-multiline

lazy val multiSelectable: A[Boolean]

Indicates that the user may select more than one item from the current selectable descendants.

Indicates that the user may select more than one item from the current selectable descendants.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-multiselectable

lazy val orientation: A[String]

Indicates whether the element and orientation is horizontal or vertical.

Indicates whether the element and orientation is horizontal or vertical.

Enumerated: "vertical" | "horizontal" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-orientation

lazy val owns: A[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 related controls.

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 related controls.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-owns

lazy val posInSet: A[Int]

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 related setSize.

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 related setSize.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-posinset

lazy val pressed: A[String]

Indicates the current "pressed" state of toggle buttons. See related checked and selected.

Indicates the current "pressed" state of toggle buttons. See related checked and selected.

Enumerated: Tristate – "true" | "false" | "mixed" | undefined (default)

  • undefined means the element does not support being pressed

https://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed

lazy val readOnly: A[Boolean]

Indicates that the element is not editable, but is otherwise operable. See related disabled.

Indicates that the element is not editable, but is otherwise operable. See related disabled.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-readonly

lazy val relevant: A[String]

Indicates what user agent change notifications (additions, removals, etc.) assistive technologies will receive within a live region. See related atomic.

Indicates what user agent change notifications (additions, removals, etc.) assistive technologies will receive within a live region. See related atomic.

Enumerated: "additions" | "removals" | "text" | "all" | "additions text" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-relevant

lazy val required: A[Boolean]

Indicates that user input is required on the element before a form may be submitted.

Indicates that user input is required on the element before a form may be submitted.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-required

lazy val selected: A[Boolean]

Indicates the current "selected" state of various widgets. See related checked and pressed.

Indicates the current "selected" state of various widgets. See related checked and pressed.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-selected

lazy val setSize: A[Int]

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 related posInSet.

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 related posInSet.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-setsize

lazy val sort: A[String]

Indicates if items in a table or grid are sorted in ascending or descending order.

Indicates if items in a table or grid are sorted in ascending or descending order.

Enumerated: "ascending" | "descending" | "other" | "none" (default)

https://www.w3.org/TR/wai-aria/states_and_properties#aria-sort

lazy val valueMax: A[Double]

Defines the maximum allowed value for a range widget.

Defines the maximum allowed value for a range widget.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuemax

lazy val valueMin: A[Double]

Defines the minimum allowed value for a range widget.

Defines the minimum allowed value for a range widget.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuemin

lazy val valueNow: A[Double]

Defines the current value for a range widget. See related valueText.

Defines the current value for a range widget. See related valueText.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuenow

lazy val valueText: A[String]

Defines the human readable text alternative of aria-valuenow for a range widget.

Defines the human readable text alternative of aria-valuenow for a range widget.

https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuetext