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
Hello, I've successfully styled react-select so that it appears as an inline element within a paragraph element. However, because there are several divs in the react-select component, this is technically invalid HTML, even though I have set the display property of the containing div to inline-block.
Is there a way to set the element types of the sub-components without using the components prop to replace each one? Or is there any other advice for this use-case?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I've successfully styled react-select so that it appears as an inline element within a paragraph element. However, because there are several
div
s in the react-select component, this is technically invalid HTML, even though I have set the display property of the containing div toinline-block
.Is there a way to set the element types of the sub-components without using the
components
prop to replace each one? Or is there any other advice for this use-case?Beta Was this translation helpful? Give feedback.
All reactions