Skip to content
On this page

ToggleSwitch

Component ToggleSwitch, similar to Checkbox. It manages binary states.

Implements mixins RequiredInputMixin and BasicInputMixin.

Send me weekly
html
<Card>
  <ToggleSwitch name="newsletter" label="Send me weekly" />
</Card>

Props

  • showYesNo (default false): Show Yes and No labels next to toggle.
Send me weekly
No
Yes
html
<Card>
  <ToggleSwitch name="newsletter" label="Send me weekly" showYesNo />
</Card>

Emits

  • changeField. Custom change event.