id
Description
Optional. Sets an HTML id for a switch buttonUsage
id?: string | number;
Example
<Field label="Switch" position="left" type="switch">
{({ id }) => (
<Switch id={id} />
)}
</Field>
Related article: Adding a label
Related sample: Switch Button