leva
leva copied to clipboard
Query exposing certain internals
Hello All,
First of all thanks for everyone's effort on such a good library. It has been a very helpful one for trail and error during our development process's
Currently there is no easy way if anyone wants to use leva as just a backbone for simple schema and state management and replace the UI completely with their own.
We have a scenario in which we are using leva as a backbone store and the UI is completely statically generated. In order to make this work we had to make 2 patch's
- Patch the leva package and expose the Plugins and Schema objects. ( We did this since we needed to completely override the default select component with our owns )
- Create a seperate InputContexProvider and respective hook so that we can expose these things in the same way as leva does.
And with above 2 changes we were able to replace the json-forms with something more simpler manageable.
So I was thinking if it could be possible to expose these 2 things from leva as default.
Hey 👋
Currently we have no plans to make leva headless, but this gets asked a lot. Do you want to make a PR that would enable this scenario?
Sure I will make the simple PR for now exposing the required things. As for the changes for making leva headless I think that will require some thought.
Will look into that once we have our POC's ready, that should give us a very good idea on how we can make leva headless