Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

v-tweakpane

vinayakkulkarni191MIT0.3.2TypeScript support: included

Tweakpane for Vue

tweakpane, Vue tweakpane, v-tweakpane, vue-tweakpane.js

readme

V-Tweakpane 🎛️

Continuous Integration CodeQL Ship js trigger GitHub release (latest SemVer) npm npm npm (downloads) npm bundle size (version) npm type definitions DeepScan grade Snyk Vulnerabilities for GitHub Repo license GitHub contributors

eslint prettier vite vue typescript


Demo

Edit v-tweakpane


Features


Table of Contents

Installation

npm i tweakpane v-tweakpane @tweakpane/plugin-essentials

Build Setup

# install dependencies
$ npm install

# package lib
$ npm run build

Usage

Global component:

// main.ts
import { VTweakpane } from 'v-tweakpane';
import { createApp } from 'vue';

const app = createApp({});
app.component('VTweakpane', VTweakpane);

Or use locally

// component.vue
<script lang="ts">
import { defineComponent } from 'vue';
import { VTweakpane } from 'v-tweakpane';

export default defineComponent({
  components: {
    VTweakpane,
  },
});
</script>

For Nuxt 3, create a file in plugins/v-tweakpane.ts

import { VTweakpane } from 'v-tweakpane';

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component('VTweakpane', VTweakpane);
});

then import the file in nuxt.config.{j|t}s:

export default {
  // ...
  plugins: [
    // ...
    { src: '~/plugins/v-tweakpane', mode: 'client' },
    // ...
  ],
  // ...
};

Example

<template>
  <v-tweakpane :pane="state.pane" />
</template>
<script lang="ts">
  import { defineComponent, ref } from 'vue';
  import { VTweakpane } from 'v-tweakpane';

  export default defineComponent({
    name: 'App',
    components: { VTweakpane },
    setup() {
      const state = ref({
        pane: {
          title: 'My Awesome Pane',
          inputs: [
            {
              factor: 123,
              title: 'hello',
              color: '#0f0',
            },
          ],
        },
      });
      return { state };
    },
  });
</script>
<style>
  @import 'v-tweakpane/dist/v-tweakpane.css';
</style>

Contributing

  1. Fork it (https://github.com/vinayakkulkarniv-tweakpane/fork)
  2. Create your feature branch (git checkout -b feat/new-feature)
  3. Commit your changes (git commit -Sam 'feat: add feature')
  4. Push to the branch (git push origin feat/new-feature)
  5. Create a new Pull Request

Note:

  1. Please contribute using GitHub Flow
  2. Commits & PRs will be allowed only if the commit messages & PR titles follow the conventional commit standard, read more about it here
  3. PS. Ensure your commits are signed. Read why

Author

v-image © Vinayak, Released under the MIT License.
Authored and maintained by Vinayak Kulkarni with help from contributors (list).

vinayakkulkarni.dev · GitHub @vinayakkulkarni · Twitter @_vinayak_k

changelog

0.3.2 (2024-03-20)

Bug Fixes

  • jsr: setup bun & build dist (ef418e2)

0.3.1 (2024-03-20)

Bug Fixes

  • jsr: update as per docs (8b40dca)

0.3.0 (2024-03-20)

Bug Fixes

  • add ignore files for linters (d876368)
  • bump jsr package (bf83883)
  • deps: bump @antfu/utils from 0.7.2 to 0.7.4 in /example (94a23e7)
  • deps: bump @tweakpane/plugin-camerakit in /example (09ab337)
  • deps: bump @tweakpane/plugin-essentials from 0.1.5 to 0.1.7 (4eeef77)
  • deps: bump @tweakpane/plugin-essentials from 0.1.7 to 0.1.8 (5c68074)
  • deps: bump @tweakpane/plugin-essentials from 0.2.0 to 0.2.1 (5081a3b)
  • deps: bump @tweakpane/plugin-essentials in /example (0f3289b)
  • deps: bump @tweakpane/plugin-essentials in /example (482b1e8)
  • deps: bump @tweakpane/plugin-essentials in /example (2be065f)
  • deps: bump actions/checkout from 3 to 4 (c4c4972)
  • deps: bump actions/setup-node from 3 to 4 (c04e37c)
  • deps: bump actions/stale from 6 to 7 (ff954fb)
  • deps: Bump actions/stale from 7 to 8 (01890da)
  • deps: bump actions/stale from 8 to 9 (15f4e79)
  • deps: bump amannn/action-semantic-pull-request from 5.0.2 to 5.1.0 (580237a)
  • deps: Bump amannn/action-semantic-pull-request from 5.1.0 to 5.2.0 (a017457)
  • deps: bump amannn/action-semantic-pull-request from 5.2.0 to 5.3.0 (a8de8fd)
  • deps: bump amannn/action-semantic-pull-request from 5.3.0 to 5.4.0 (c2b4ea9)
  • deps: Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 (3a60270)
  • deps: bump dependabot/fetch-metadata from 1.4.0 to 1.5.0 (e4dc95c)
  • deps: bump dependabot/fetch-metadata from 1.5.0 to 1.5.1 (cb91f94)
  • deps: bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 (6bd5918)
  • deps: bump github/codeql-action from 2 to 3 (4557678)
  • deps: bump peaceiris/actions-gh-pages from 3.9.0 to 3.9.1 (f953ddc)
  • deps: bump peaceiris/actions-gh-pages from 3.9.1 to 3.9.2 (e94816b)
  • deps: Bump peaceiris/actions-gh-pages from 3.9.2 to 3.9.3 (8d90921)
  • deps: bump postcss from 8.4.18 to 8.4.31 in /example (5535dbc)
  • deps: bump tweakpane and @tweakpane/plugin-essentials (501ea8f)
  • deps: bump tweakpane from 3.1.0 to 3.1.1 (9f676bc)
  • deps: bump tweakpane from 3.1.0 to 3.1.1 in /example (6a9beca)
  • deps: bump tweakpane from 3.1.2 to 3.1.4 (a7bfcb8)
  • deps: bump tweakpane from 3.1.2 to 3.1.4 in /example (5790c24)
  • deps: bump tweakpane from 3.1.4 to 3.1.5 in /example (5ee85c9)
  • deps: Bump tweakpane from 3.1.4 to 3.1.6 (b288684)
  • deps: Bump tweakpane from 3.1.5 to 3.1.6 in /example (3fe185c)
  • deps: Bump tweakpane from 3.1.6 to 3.1.7 (894180f)
  • deps: Bump tweakpane from 3.1.6 to 3.1.7 in /example (ad6b397)
  • deps: Bump tweakpane from 3.1.7 to 3.1.8 (6c42e6e)
  • deps: Bump tweakpane from 3.1.7 to 3.1.8 in /example (d17532e)
  • deps: Bump tweakpane from 3.1.8 to 3.1.9 (1e33608)
  • deps: Bump tweakpane from 3.1.8 to 3.1.9 in /example (aecd233)
  • deps: bump tweakpane from 3.1.9 to 3.1.10 (08ccfbb)
  • deps: bump tweakpane from 3.1.9 to 3.1.10 in /example (4363b09)
  • deps: bump tweakpane from 4.0.0 to 4.0.1 (0e01375)
  • deps: bump tweakpane from 4.0.0 to 4.0.1 in /example (0cfde33)
  • deps: bump tweakpane from 4.0.1 to 4.0.2 (4f84ef8)
  • deps: bump tweakpane from 4.0.1 to 4.0.2 in /example (7eb8596)
  • deps: bump tweakpane from 4.0.2 to 4.0.3 (d99e32a)
  • deps: bump tweakpane from 4.0.2 to 4.0.3 in /example (82689eb)
  • deps: bump tweakpane, @tweakpane/plugin-camerakit and @tweakpane/plugin-essentials (304f490)
  • deps: Bump v-github-icon from 3.0.2 to 3.1.1 in /example (d0f65a7)
  • deps: bump v-github-icon from 3.1.1 to 3.1.2 in /example (400007c)
  • deps: bump vue from 3.2.41 to 3.2.44 in /example (7381974)
  • deps: bump vue from 3.2.44 to 3.2.45 in /example (e6779e1)
  • deps: bump vue from 3.2.45 to 3.2.47 in /example (44b4e23)
  • deps: Bump vue from 3.2.47 to 3.3.1 in /example (1d50ddb)
  • deps: bump vue from 3.3.1 to 3.3.2 in /example (44aeea0)
  • deps: bump vue from 3.3.10 to 3.3.11 in /example (7951b1c)
  • deps: bump vue from 3.3.11 to 3.3.12 in /example (609ceb6)
  • deps: bump vue from 3.3.12 to 3.3.13 in /example (4516431)
  • deps: bump vue from 3.3.13 to 3.4.3 in /example (42fbca5)
  • deps: bump vue from 3.3.2 to 3.3.4 in /example (acb7c9c)
  • deps: bump vue from 3.3.4 to 3.3.6 in /example (ab563c4)
  • deps: bump vue from 3.3.6 to 3.3.7 in /example (2b5a194)
  • deps: bump vue from 3.3.7 to 3.3.8 in /example (de93f78)
  • deps: bump vue from 3.3.8 to 3.3.9 in /example (3c65aef)
  • deps: bump vue from 3.3.9 to 3.3.10 in /example (3bc1c1c)
  • deps: bump vue from 3.4.3 to 3.4.4 in /example (c0cd369)
  • deps: bump vue from 3.4.4 to 3.4.5 in /example (9614adb)
  • deps: bump vue from 3.4.5 to 3.4.6 in /example (33976b6)
  • let shipjs do publishCommand (fd6423c)
  • stylelint: remove unused prettier config (ee3b802)
  • use latest bun version for ci (c10bc17)

Features

Reverts

0.2.0 (2022-11-08)

Bug Fixes

  • deps: bump v-github-icon from 3.0.1 to 3.0.2 in /example (3793078)
  • deps: bump v-tweakpane from 0.1.0 to 0.1.1 in /example (59b0ff6)
  • remove unused types (68caa9f)

Features

  • add codeql workflow 👷‍♂️ (15ae8ca)

0.1.1 (2022-11-03)

Bug Fixes

0.1.0 (2022-11-02)

Bug Fixes

  • deps: bump actions/stale from 5 to 6 (ba780df)
  • deps: bump amannn/action-semantic-pull-request from 4 to 5 (db54431)
  • deps: bump peaceiris/actions-gh-pages from 3.8.0 to 3.9.0 (6dd1508)

Features

0.0.3 (2022-07-31)

Bug Fixes

  • ci: don't use pull_request evt (e560720)
  • deps: bump actions/checkout from 2 to 3 (2f7b13c)
  • deps: bump actions/setup-node from 2.2.0 to 2.4.0 (4e3b561)
  • deps: bump actions/setup-node from 2.4.0 to 2.4.1 (e7210d1)
  • deps: bump actions/setup-node from 2.4.1 to 2.5.0 (c049198)
  • deps: bump actions/setup-node from 2.5.0 to 2.5.1 (21227ba)
  • deps: bump actions/setup-node from 2.5.1 to 3 (2cec616)
  • deps: bump actions/stale from 3 to 4.1.0 (6e9b996)
  • deps: bump actions/stale from 4.1.0 to 5 (0965ca7)
  • deps: bump ejs from 3.1.6 to 3.1.7 (7273bde)
  • deps: bump follow-redirects from 1.14.6 to 1.14.8 (55d7992)
  • deps: bump minimist from 1.2.5 to 1.2.6 (5979081)
  • deps: bump nanoid from 3.1.30 to 3.2.0 (2d6411b)
  • deps: bump node-fetch from 2.6.6 to 2.6.7 (3b66189)
  • deps: bump shell-quote from 1.7.2 to 1.7.3 (a729ec1)
  • deps: bump terser from 4.8.0 to 4.8.1 (13d23f7)
  • deps: bump tweakpane from 3.0.3 to 3.0.5 (62f21a0)
  • deps: bump tweakpane from 3.0.5 to 3.0.6 (00c7bbf)
  • deps: bump tweakpane from 3.0.6 to 3.0.7 (825cb92)
  • deps: bump tweakpane from 3.0.7 to 3.0.8 (2eb216c)
  • deps: bump tweakpane from 3.0.8 to 3.1.0 (44c70a9)
  • deps: bump wearerequired/lint-action from 1 to 2 (7ddb8e1)
  • update stories (3d80a4d)

Features

  • add dependabot config 😍 (f3f8e00)

0.0.2 (2021-07-19)

Bug Fixes

  • deploy script issue while building storybook (4af2c8f)

Features

  • add basic v0.0.2 tweakpane integration (67bf8d0)
  • storybook: add sb config files (efaf856)
  • ts: export PaneProps interface (c42c244)

0.0.1 (2021-07-17)