Radio - PIWEEK/polymux GitHub Wiki
Radio
A radio button. Radio buttons that have the same value for the name attribute are in the same "radio button group"; only one radio button in a group can be selected at a time.
<polymux-radio id="id" name="input" text="Radio text" checked required disabled></polymux-radio>
Radio buttons should have different id's. This value is required.
###Attributes
- Id: The index name of the input. Should be unique to avoid problems between inputs.
- Name: The index name of the input. Should be unique to avoid problems between inputs.
- Text This is the text that will explain to the user what is the option they are switching on or of.
- checked optional This attribute sets this radio button selected by default.
- required optional This attribute specifies that the user must fill in a value before submitting a form.
- disabled optional Indicates that the form control is not available for interaction.