Switch

A control that allows the user to toggle between checked and not checked.

          
      

Installation

          
      
          
      

Usage

          
      
          
      

Examples

Default

          
      

Disabled

          
      

Checked

          
      

Form

Email Notifications

Receive emails about new products, features, and more.

Receive emails about your account security.

          
      

API Reference

Properties

PropertyTypeDefaultDescription
checkedbooleanfalseWhether the switch is checked.
disabledbooleanfalseWhether the switch is disabled.
classstringAdditional CSS classes to apply to the switch.

Outputs

OutputTypeDescription
checkedChangebooleanEmitted when the checked state changes.

Built with ❤️ by @immohammadjaved • Source code available on GitHub