Skip to content

Tweak UI

Live tweak panels for numbers, colors, vectors and more.

Getting started

Install

shell
npm install tweak-ui

Import

ts
import { mountUi } from 'tweak-ui'

Find stylehseets

node_modules/tweak-ui/tweak-ui.css

Create an HTML container where Tweak UI should render.

html
<div class="my-element"></div>

Mount your controls

ts
mountUi('.my-element', (ui) => {
  // ... builder function for static controls
})

Or with full mithril control

ts
mountUi('.my-element', {
  view: () => {
    // ... mithril view function for dynamic controls
  },
})