Toggle

Sliding switch. The visual is Alpine; underneath sits a real sr-only checkbox, so it submits with a form as usual.

States

@components.Toggle(components.ToggleProps{ID: "notif", Name: "notif", Label: "Notifications"})

Inside a form

★★★★★
<form method="get">...</form> — submit it and see the values in the query string