Skip to content

Radio

The radio component.

Importing

ts
import "@tapsioss/web-components/radio";
ts
import { Radio } from "@tapsioss/react-components/Radio";

Component Usage

html
<tapsi-radio></tapsi-radio>
tsx
<Radio />

Properties

NameDescriptionTypeDefault Value
checkedIndicates whether the radio is checked.booleanfalse
disabledIndicates whether the radio is disabled.booleanfalse
valueThe value of the radio when it is checked.string"on"
labelDefines a string value that can be used to name radio input.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label
string-
labelledbyIdentifies the element (or elements) that labels the radio input.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby
string-
requiredIndicates that the user must specify a value for the input before the owning form can be submitted and will render an error state when reportValidity() is invoked when value is empty.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
booleanfalse
autofocusIndicates that the element should be focused on page load. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocusbooleanfalse