-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support className
to make styled-components
usage easier
#2089
Comments
Would this also allow https://github.com/zeit/styled-jsx? Just wondering, I bet https://github.com/zeit/styled-jsx is right now mostly used in next.js websites. |
This is to allow the usage of Using the classnames that are already defined is not working? (ex: .ais-Menu__root) |
@vvo I don't know, but I have a project with @mthuret Right now either you create a custom component with the connector, or you have to add a container which wrap the import React from 'react';
import styled from 'styled-components';
import {Hits} from 'react-instantsearch';
const HitsContainer = styled.div`
.ais-Hits__root {
[ ... ]
}
`;
render() {
return (
<HitsContainer>
<Hits />
<HitsContainer>
)
} If And it's a common usage for third party components to accept this |
React InstantSearch has been moved here: https://github.com/algolia/react-instantsearch |
Feature: What is your use case for such a feature?
You can style directly third party components with
styled-components
this way:Feature: What is your proposed API entry? The new option to add? What is the behavior?
Every widget/component should accept
className
property for the root container.What project are you opening an issue for?
The text was updated successfully, but these errors were encountered: