DioxusLabs / blitz

A radically modular HTML/CSS rendering engine
Apache License 2.0
2.13k stars 42 forks source link

Checkbox inputs #125

Closed cfraz89 closed 2 months ago

cfraz89 commented 2 months ago

Adds support for input type="checkbox", as requested in #94 . Makes checkboxes send oninput event when clicked. If event isn't bound (there's no data-dioxus-id), they will behave as an unmanaged input, and handle checked state internally. If it is, they will send an oninput event with a FormData argument.

Adds a 'form' example to demonstrate.

Caveats:

image

nicoburns commented 2 months ago

This PR seems to be breaking button layout on the google example.

main branch:

Screenshot 2024-09-05 at 15 03 03

This PR:

Screenshot 2024-09-05 at 15 03 31