UikToggle

This is an alias component for <UikCheckbox toggle />

PropertyTypeRequiredDefault ValueDescription
childrenReact.Nodefalsenull
descriptionReact.Nodefalsenull
classNameStringfalsenullclassName, e.g. "my-custom-styling"
...restanyfalseOther properties passed down to the input element. See the code for more information.

UikToggle Examples

ComponentExample Code
<UikToggle label="Toggle Me" />
<UikToggle
  description="If you click, it will toggleeee."
  label="Toggle Me"
/>
// other properties goes to input element directly
<UikToggle
  defaultChecked
  label="Toggle Me"
  name="is_hooman"
/>