Switch - PIWEEK/polymux GitHub Wiki

Switch

Same as polymux-checkbox, different layout. A form component that can be turned on and off. The user can switch the state of the checkbox.

<polymux-switch name="switch" required checked></polymux-switch>

###Attributes

  • 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 the check box 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.