salesforce aura toggle input
snippet in html

salesforce aura toggle input

user2625

<template>
    <lightning-input type="toggle"
                     label="Toggle value"
                     checked>
    </lightning-input>
</template>

salesforce aura toggle input

user1786

<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>