zdhxiong / mdui

Material Design 3(Material You) UI components using Web Components.
https://www.mdui.org
4.19k stars 365 forks source link

Unable to add label next to switch #326

Open pedzed opened 5 months ago

pedzed commented 5 months ago

Apparently the switch component already internally makes use of a label. Is it not possible to have a custom label with text next to the switch?

This is my attempt:

<label>
    <mdui-switch></mdui-switch> Toggle the switch
</label>

image