Skip to content
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

Make it UI library agnostic #185

Open
luigi-derson opened this issue Jun 11, 2021 · 2 comments
Open

Make it UI library agnostic #185

luigi-derson opened this issue Jun 11, 2021 · 2 comments

Comments

@luigi-derson
Copy link

Feature request

It would be a good idea to don't have Material UI library dependency. This way you can use a different library or your own one.

Is your feature request related to a problem? Please describe.

Not really, but I think not everyone likes Material design to say something 😅

Describe the solution you'd like

export core functionalities as utils, hooks, higher order functions and only the logic you have used on your customised components. These changes involves to have new section in the docs as well.

Describe alternatives you've considered

Additional context

This proposal comes out from creating custom components using Chakra UI for a personal project so I've cloned the project and I've been making the modifications to remove material UI dependency.

@s-c-p
Copy link

s-c-p commented Sep 30, 2021

Hi @luigi-derson since the naming convention of UI elements is not consistent (e.g. top modal vs drawer) I am not sure if implementing such a feature would be straightforward. Do you have any ideas on how to bridge such deviations in code? And who should we respect when giving default names?

@luigi-derson
Copy link
Author

Hi @luigi-derson since the naming convention of UI elements is not consistent (e.g. top modal vs drawer) I am not sure if implementing such a feature would be straightforward. Do you have any ideas on how to bridge such deviations in code? And who should we respect when giving default names?

Hi,

So the idea is to export only hooks, functions or higher order components to use with your chosen UI library. This way you would only have to import the logic and use it in your components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants