lona-picocss switches work like Lona CheckBoxes
from lona_picocss.html import HTML, H1, Label, Switch
from lona_picocss import install_picocss
from lona import View, App
app = App(__file__)
install_picocss(app, debug=True)
@app.route('/')
class FormsView(View):
def handle_request(self, request):
return HTML(
H1('Switch'),
Label(
'Switch ',
Switch(),
),
)
app.run()