-
Notifications
You must be signed in to change notification settings - Fork 215
feat(headless): add headless mode #553
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 05d96e5 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@myers is attempting to deploy a commit to the Poimandres Team on Vercel. A member of the Team first needs to authorize it. |
|
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 05d96e5:
|
|
@gsimone I'm glad to see some of my PR's getting merged. I would really love this one to get merged. Do you have any thoughts on it? |
|
@myers I'll take a proper look once I finished setting up tooling so we can start merging stuff more aggressively! |
|
@gsimone I have a fix for the global panel not being removed when switching between headless/headed mode. I wasn't thinking of allowing a switch like this for my use case. What I was shooting for was using this in WebXR with a uikit panel, where you can't use HTML. |
Add headless mode entry point
This PR adds a new leva/headless entry point that enables using Leva's state management without automatically rendering the default UI panel. This is useful for building custom UIs in WebXR environments where you can use the DOM or React Three Fiber using 3d controls, or any scenario where you want Leva's hooks without the HTML controls.
What's New
New entry point: leva/headless
Convenience hooks for building custom UIs:
Demo: Added leva-headless demo showing custom UI controls built from input metadata
Implementation Details
Example Usage