-
Notifications
You must be signed in to change notification settings - Fork 531
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
feat(react-instantsearch): add Carousel
layout component
#6320
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit cc33670:
|
I think the typing issue you have with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@@ -0,0 +1,36 @@ | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this folder be components
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. In instantsearch.js
it's in templates
although that is stated in the RFC (which is not the case for the React counterpart). Let me know if components
is better for React!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @Haroenv, we have different APIs in InstantSearch.js (templates
object) and React InstantSearch (individual component props) for customizing the UI so it makes sense to have different names.
Closing in favour of #6321 |
This adds the the
Carousel
layout component and enables thelayoutComponent
prop in Recommend widgets. React getting started example has been update to useCarousel
as well.https://algolia.atlassian.net/browse/FX-2819
TODO: fix Recommend widget prop types