By default Popover component doesn't allow user to theme the card that it contains or pass any style props, It does however provide this statelessProps prop that allows us to override styles. It would make much more sense to just have ...props spread out in every component's forwarded ref and maybe have custom prop support for main nodes that components contain so that we can use className . Like I may want to style FilePicker's button and the name field with Tailwind, so the component if it had accepted buttonProps, inputProps - it would have made things much more easier.
By default Popover component doesn't allow user to theme the card that it contains or pass any style props, It does however provide this
statelessProps
prop that allows us to override styles. It would make much more sense to just have...props
spread out in every component's forwarded ref and maybe have custom prop support for main nodes that components contain so that we can use className . Like I may want to style FilePicker's button and the name field with Tailwind, so the component if it had acceptedbuttonProps
,inputProps
- it would have made things much more easier.Produces something like this -
Without it, we get