Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
113 stars 7 forks source link

Allow props to be passed down to native select in FormSelect component #441

Closed cg-mmirca closed 1 year ago

cg-mmirca commented 1 year ago

Is your feature request related to a problem? Please describe. I want to use the HTML disabled property for the native select rendered by FormSelect.

Describe the solution you'd like I would like to have a property similar to inputProps found at the FormInput. This would allow me to pass down all the properties I need to the native select element.

Describe alternatives you've considered We could do a querySelector to obtain the HTML reference but I would be React-friendly.

Additional context A suggestion would be to add "selectProps" property to the FormSelect component.

daniele-zurico commented 1 year ago

closed by #444