Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 610 Bytes

forms.md

File metadata and controls

33 lines (22 loc) · 610 Bytes

Forms

Forms

Switch

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()