Closed papsavas closed 11 months ago
Thank you for your contribution! Is there anything speaking against changing it to <SelectValue className="w-full" {...fieldConfigItem.inputProps}>
to pass all input props? This way we don't need to explicitly set every prop.
So there are couple of places where they accept placeholder
s. SelectTrigger
, SelectValue
and SelectContent
.
Turns out only SelectValue
works for that.
That being said, some props might be more suitable for different components. For ex you might want to have a background color for all options, hence SelectContent
.
In conclusion, that means you will not have a single component to dump them all, but rather you'll need to redistribute them accordingly.
Because this is difficult to implement, i would add one prop at a time to its corresponding component
I see, that makes sense - thank you again for the contribution!
placeholder
toSelectValue
You can now pass a custom
Select
placeholder