All Projects → tweakpane → use-tweaks

tweakpane / use-tweaks

Licence: MIT license
🎛️ Tweak React components with Tweakpane

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to use-tweaks

Tweakpane
🎛 Compact GUI for fine-tuning parameters and monitoring value changes
Stars: ✭ 1,296 (+94.59%)
Mutual labels:  creative-coding, tweaks
DM-GY-9103-Advanced-Creative-Coding
Class repository for Advanced Creative Coding
Stars: ✭ 28 (-95.8%)
Mutual labels:  creative-coding
perfect-ubuntu
js dev setup, just for fun
Stars: ✭ 14 (-97.9%)
Mutual labels:  tweaks
Windows10Tools
Tools for Windows 10
Stars: ✭ 45 (-93.24%)
Mutual labels:  tweaks
processing.py-book
Resources for "Learn Python Visually – Creative Coding in Processing.py" from No Starch Press
Stars: ✭ 50 (-92.49%)
Mutual labels:  creative-coding
recoded
Re-coded by the School for Poetic Computation—crowdsourced recreations of early digital works using new tools
Stars: ✭ 57 (-91.44%)
Mutual labels:  creative-coding
Joukkue
Collaborative creative coding
Stars: ✭ 35 (-94.74%)
Mutual labels:  creative-coding
Windows11-Optimization
Community repository, to improve security and performance of Windows 10 and windows 11 with tweaks, commands, scripts, registry keys, configuration, tutorials and more
Stars: ✭ 17 (-97.45%)
Mutual labels:  tweaks
osc-simulator
A utility to test Open Sound Control sending and receiving from the browser
Stars: ✭ 23 (-96.55%)
Mutual labels:  creative-coding
manyworlds
A scifi-inspired study of signed distanced functions and noise fields in WebGL
Stars: ✭ 24 (-96.4%)
Mutual labels:  creative-coding
gestalt
Creative coding playground - Color, Note, Code
Stars: ✭ 16 (-97.6%)
Mutual labels:  creative-coding
hxProcessing
Use Processing in Haxe's Java target
Stars: ✭ 19 (-97.15%)
Mutual labels:  creative-coding
iOS-Tweak-Dev-Tools
A collection of useful development tools and forks of tools that are geared towards iOS jailbreak developers.
Stars: ✭ 37 (-94.44%)
Mutual labels:  tweaks
glitchify
Tweaks for the official twitch.tv android app
Stars: ✭ 33 (-95.05%)
Mutual labels:  tweaks
TickrateChanger
A mod that changes the game speed
Stars: ✭ 39 (-94.14%)
Mutual labels:  tweaks
react
A wrapper component that allows you to utilise P5 sketches within React apps.
Stars: ✭ 332 (-50.15%)
Mutual labels:  creative-coding
CLE
Command Live Environment
Stars: ✭ 21 (-96.85%)
Mutual labels:  tweaks
b5
A visual programming language for learning, prototyping, and fun. Inspired by p5.js.
Stars: ✭ 48 (-92.79%)
Mutual labels:  creative-coding
WindowsRegistry
Windows Registry Tweaks & Hacks
Stars: ✭ 31 (-95.35%)
Mutual labels:  tweaks
splat
Motion-controlled Fruit Ninja clone using Three.js & Tensorflow.js
Stars: ✭ 84 (-87.39%)
Mutual labels:  creative-coding

A screenshot of the library in use npm npm Discord Shield

Use Tweakpane in React apps

Try it here on Codesandbox

npm install tweakpane use-tweaks

Basic example

import { useTweaks } from "use-tweaks"

function MyComponent() {
  const { speed, factor } = useTweaks({
    speed: 1,
    factor: { value: 1, min: 10, max: 100 },
  });

  return (
    <div>
      {speed} * {factor}
    </div>
  );
}

Misc

Folders

You can add a top-level folder by passing the name as first argument of the hook:

import { useTweaks } from "use-tweaks"

const { speed, factor } = useTweaks("My title!", { speed: 1, factor: 1 })

You can also nest folders by using the makeFolder helper:

import { useTweaks, makeFolder } from "use-tweaks"

const { speed, factor } = useTweaks("My Title!", {
  speed: 1,
  ...makeFolder(
    "Advanced",
    {
      factor: 1,
    },
    false
  ), // pass false to make the folder collapsed by default
})

Buttons

Use the makeButton helper to create and add a button

import { useTweaks, makeButton } from "use-tweaks"

const { speed, factor } = useTweaks({
  speed: 1,
  factor: { value: 1, min: 10, max: 100 },
  ...makeButton("Log!", () => console.log("Hello World!"))
})

Separator

Use the makeSeparator helper to add a separator

import { useTweaks, makeSeparator } from "use-tweaks"

const { speed, factor } = useTweaks({
  speed: 1,
  ...makeSeparator(),
  factor: { value: 1, min: 10, max: 100 },
})

License

This project is open source and available under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].