hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.27k stars 287 forks source link

Form elements should have name property #643

Open simonh1000 opened 5 months ago

simonh1000 commented 5 months ago

Is your feature request related to a problem? Please describe. Svelte puts a lot of emphasis on writing forms using html form syntax. That requires name properties to create the right data for for <form method="POST"...> It doesn't look as though those can be added

Describe the solution you'd like a name field on Radio, TextField, ... that is put onto the form element itself

Describe alternatives you've considered I'm going to try using the current reactive values and attaching that to a hidden field

Additional context Add any other context or screenshots about the feature request here.