Use the `required` attribute to mark the switch as required. This can be used for form validation purposes.

```html
<sd-switch required>Required</sd-switch>
```
