Open Fralleee opened 6 years ago
I think you can get that to work, please check: https://github.com/moroshko/react-autosuggest#theme-optional
I was able to do with CSS Modules. Should be the same with styled components.
I think if allow add a custom className to root element, will help a lot.
You can also wrap AutoSuggest in a StyledWrapper ex:
<StyledWrapper>
<Autosuggest {...yourProps} />
</StyledWrapper>
const StyledWrapper = styled.div`
& .react-autosuggest__container{
// your style
}
`
You can also wrap AutoSuggest in a StyledWrapper ex:
<StyledWrapper> <Autosuggest {...yourProps} /> </StyledWrapper> const StyledWrapper = styled.div` & .react-autosuggest__container{ // your style } `
What is styled here??
What is styled here??
Google styled-components
I face a similar issue to customize aria attributes of the container. Is there any way to manage aria attributes of container?
Since the container/root element does not pass className prop we can't use styled components on it. Since we're not using any other styling other than styled in our project there is no way for me to set position relative on the root element.