next-rs / input-yew

A feature-rich, accessible, highly customizable, functional, reusable input component for Yew and You, btw.
https://docs.rs/input-yew
Apache License 2.0
4 stars 1 forks source link

Feature suggestion: Add custom attributes to input. #7

Open NordicAngel opened 9 months ago

NordicAngel commented 9 months ago

As someone new to Yew, I thank you for this crate, it makes inputs a lot easier.

That said how about a way of adding extra attributes, to the input html tag. Lets say i would like to make a datalist input that would need me to use the list attribute or I want to add a onchange event to the input.

I would suggest a way of taking one or more arbitrary attribute and add them to the input tag.

I hope you will consider my suggestion, I'm not sure how difficult it would be as I'm not yet very experienced in Rust as a whole.

wiseaidev commented 9 months ago

Thanks for filing this issue, @NordicAngel. Awesome feature! Let's see if I can ship a new release today.