id
Description
sets an HTML id for a switch buttonType
string|number
Example
<Field label="Switch" position="left" type="switch">
{#snippet children(id)}
<Switch {id} />
{/snippet}
</Field>
Related article: Adding a label
Related sample: Switch Button