-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
RFC: Authenticator render props #474
Comments
Hey @imranolas , you can selectively use components with This is similar what you have offered. I like to know if that works out for you? |
FYI, we have started an RFC discussion for a proposed Amplify UI Component refactor to increase customizability and flexibility for our components. Please feel free to add any additional comments to the following issue: |
This issue has been open for a while, but it seems worth closing since Otherwise, there may be a need for a "headless component", but https://github.com/aws-amplify/amplify-js/discussions is the best place to have that conversation & have the community vote. (I'd also like to have see a headless component for managing Auth flow complexity!) |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Thanks for the great project!
I wondered whether you might be open to reconsidering the authenticator API for React. The customization options on offer thus far are either partial in terms of styles or all in through component inheritance. I would propose the fashionable render props pattern as a flexible alternative. This would allow the renderProp to expose only the public interface for the authenticator API, whilst providing the necessary props to build custom components.
Like so:
For a good example and justification of this pattern see https://github.com/paypal/downshift.
The text was updated successfully, but these errors were encountered: