@dojo/widgets/radio

June 25, 2020 ยท View on GitHub

Dojo's Radio widget provides a wrapped, styleable radio widget that uses the native <input type="radio"> as a base.

Features

  • Creates a normal radio input.
  • Correctly handles a11y attributes.
  • Wraps the input in a visible or invisible but accessible <label>.

Accessibility Features

Radio ensures that the proper attributes (ARIA or otherwise) are set along with classes when properties such as disabled, readOnly, invalid, etc. are used.