You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the DatePicker, but I want to add a label for it with the <label for="id"> tag. For this the input of the datepicker would need to have a corresponding id and there's currently no way to add that.
Leptos supports passing in dynamic attributes like
i.e. it allows to pass in arbitrary settings to a component. Of course with some components it's not clear which HTML tag should get the attributes, but for the DatePicker I think the input field makes sense. It also allows setting other things like alt text, maxLength etc. That should be much easier than adding manual support for all the various properties.
In general it'd be nice to add this on all components (not just DatePicker) where it makes sense, it'd make them much more reusable.
The text was updated successfully, but these errors were encountered:
I really like the DatePicker, but I want to add a label for it with the
<label for="id">
tag. For this the input of the datepicker would need to have a corresponding id and there's currently no way to add that.Leptos supports passing in dynamic attributes like
which can then be used like
i.e. it allows to pass in arbitrary settings to a component. Of course with some components it's not clear which HTML tag should get the attributes, but for the DatePicker I think the input field makes sense. It also allows setting other things like
alt
text,maxLength
etc. That should be much easier than adding manual support for all the various properties.In general it'd be nice to add this on all components (not just DatePicker) where it makes sense, it'd make them much more reusable.
The text was updated successfully, but these errors were encountered: