DioxusLabs / blitz

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

Checkbox element #94

Closed matthunz closed 2 months ago

matthunz commented 4 months ago

Should we support input { type: "checkbox" } by displaying a default input widget?

I think the big question here is what should the default styling look like :eyes: I'm thinking now we might want to match browser implementations somewhat close, but we may have some creative freedom here.

One idea I had is re-using the masonry Checkbox widget here

nicoburns commented 3 months ago

Read-only checkboxes would also be useful for rendering checkbox lists in Github READMEs. Our markdown library already supports generating them. Perhaps the most expedient path forwards would be to implement this custom but use the Masonry Checkbox's paint implementation (which is of course vello-based anyway).

nicoburns commented 2 months ago

Closed by #125