{"id":19343385,"url":"https://github.com/mrfoxpro/solid-tweakpane","last_synced_at":"2025-10-29T04:11:54.879Z","repository":{"id":60925099,"uuid":"546677730","full_name":"MrFoxPro/solid-tweakpane","owner":"MrFoxPro","description":"Solid components for Tweakpane","archived":false,"fork":false,"pushed_at":"2022-10-12T15:31:01.000Z","size":68,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T17:09:59.257Z","etag":null,"topics":["gui","solid","tweakpane"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/solid-tweakpane","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrFoxPro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-06T13:18:57.000Z","updated_at":"2024-09-03T13:51:55.000Z","dependencies_parsed_at":"2023-01-19T20:45:36.859Z","dependency_job_id":null,"html_url":"https://github.com/MrFoxPro/solid-tweakpane","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrFoxPro%2Fsolid-tweakpane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrFoxPro%2Fsolid-tweakpane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrFoxPro%2Fsolid-tweakpane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrFoxPro%2Fsolid-tweakpane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrFoxPro","download_url":"https://codeload.github.com/MrFoxPro/solid-tweakpane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223910071,"owners_count":17223591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","solid","tweakpane"],"created_at":"2024-11-10T03:38:10.707Z","updated_at":"2025-10-29T04:11:49.824Z","avatar_url":"https://github.com/MrFoxPro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"`pnpm i -S solid-tweakpane solid-js`\n\n## Without binding\n`initialValue` prop required in this case.\n```tsx\n\u003cTweakpane\u003e\n      \u003cTWPInput\n         params={{\n            step: 0.1,\n            max: 5,\n            min: 1,\n         }}\n         initialValue={1}\n         onChange={(e) =\u003e console.log(e.value)}\n      /\u003e\n   \u003cTWPButton\n      title=\"Flush drawings\"\n      onClick={() =\u003e {\n         // ...\n      }}\n   /\u003e\n\u003c/Tweakpane\u003e\n```\n## With binding\nCurrently it can be used with mutable.\nYou need to place all elements into \u003cTWPBindGroup\u003e and provide target.\nExample:\n\n```tsx\nconst settings = createMutable({\n   bool: false,\n   current: 0.01,\n   folder1: {\n      bool: true,\n      folder11: {\n         number: 2,\n         color: '#f05',\n      },\n   },\n})\n\u003cTweakpane title=\"Settings\" expanded\u003e\n   \u003cTWPBindGroup target={settings}\u003e\n      \u003cTWPInput\n         params={{\n            label: 'test',\n         }}\n         key=\"bool\"\n         onChange={(e) =\u003e console.log('changed value test', e.value)}\n      /\u003e\n      \u003cTWPButton title={'Title can be reactive too!'} /\u003e\n      \u003cTWPSeparator /\u003e\n      \u003cTWPTab\u003e\n         \u003cTWPTabPage title=\"page1\"\u003e\n            \u003cTWPBindGroup target={settings.folder1}\u003e\n               \u003cTWPInput key=\"bool\" /\u003e\n            \u003c/TWPBindGroup\u003e\n         \u003c/TWPTabPage\u003e\n         \u003cTWPTabPage title=\"page2\"\u003e\n            \u003cTWPBindGroup target={settings.folder1.folder11}\u003e\n               \u003cTWPInput key=\"color\" /\u003e\n            \u003c/TWPBindGroup\u003e\n         \u003c/TWPTabPage\u003e\n      \u003c/TWPTab\u003e\n      \u003cTWPMonitor\n         key=\"current\"\n         params={{\n            view: 'graph',\n            min: -1,\n            max: +1,\n         }}\n      /\u003e\n   \u003c/TWPBindGroup\u003e\n\u003c/Tweakpane\u003e\n```\n![alt](https://i.imgur.com/kK7IPX8.png)\n\nIt's possible to automatically build Pane from mutable with `\u003cTWPAutoMutable\u003e`:\n\n```jsx\n\u003cTweakpane title=\"Settings\" expanded\u003e\n   \u003cTWPAutoMutable target={settings} /\u003e\n\u003c/Tweakpane\u003e\n```\n![alt](https://i.imgur.com/9mlRCMu.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrfoxpro%2Fsolid-tweakpane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrfoxpro%2Fsolid-tweakpane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrfoxpro%2Fsolid-tweakpane/lists"}