DioxusLabs / components

Components made for Dioxus.
https://dioxuslabs.com
MIT License
16 stars 1 forks source link

Forms #5

Open DogeDark opened 2 months ago

DogeDark commented 2 months ago

Specific Demand

Forms are a widely used method of collecting data in apps and we should aim to provide featured and flexible form components.

A first iteration could include a few form components that provide default styling which are built on top of Input and Button components. Perhaps forms should be type-safe, providing bindings to specific fields of a provided struct. This struct could be returned on a on_submit event.

The form components could be built on top of several other ones such as but not limited to:

Inspiration

ealmloff commented 1 month ago

It would be great if the forms could be progressively enhanced with fullstack server functions. Related issue: https://github.com/DioxusLabs/dioxus/issues/1996