lightning input placeholder code example
Example 1: salesforce aura toggle input
<template>
<lightning-input type="toggle"
label="Toggle value"
checked>
</lightning-input>
</template>
Example 2: salesforce aura toggle input
<aura:component>
<lightning:input type="toggle" label="Basic option" name="input1"/>
<lightning:input type="toggle" label="Required option" name="input2" checked="true" required="true"/>
<lightning:input type="toggle" label="Disabled option" name="input3" checked="true" disabled="true"/>
</aura:component>