### Run SvelteKit Development Server Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/getting-started.md Start the SvelteKit development server and automatically open the application in your default browser. ```sh npm run dev -- --open ``` -------------------------------- ### Install Tweakpane Essentials Plugin Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/plugins.mdx Install the @tweakpane/plugin-essentials package using npm. ```sh npm install @tweakpane/plugin-essentials ``` -------------------------------- ### Use Svelte Tweakpane UI Plugin Example Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/plugins.mdx This example demonstrates how to use a bundled plugin within Svelte Tweakpane UI. It mirrors the functionality of the vanilla Tweakpane example. ```svelte ``` -------------------------------- ### Install Svelte Tweakpane UI Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/getting-started.md Use this command to add the svelte-tweakpane-ui package to your project. ```sh npm install svelte-tweakpane-ui ``` -------------------------------- ### Create Theme Picker with List Component Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/themes.mdx Use a `` component to allow users to browse and select from available preset themes. This example demonstrates dynamically changing the theme of a Tweakpane component. ```svelte

The selected theme is applied to this pane.

``` -------------------------------- ### Create New SvelteKit Project Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/getting-started.md Use the Svelte CLI to create a new SvelteKit project with TypeScript, minimal setup, and npm package management. This is useful for testing Svelte Tweakpane UI from scratch. ```sh npx sv create --no-add-ons --types ts --template minimal --install npm svelte-tweakpane-sandbox ``` -------------------------------- ### Vanilla Tweakpane Range Example Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/index.mdx Demonstrates how to implement a range-bound numeric slider using the vanilla Tweakpane API within a Svelte component. Requires manual management of PARAMS object, binding, event listeners, and component lifecycle. ```javascript import Tweakpane from 'tweakpane'; import { onMount, onDestroy } from 'svelte'; let pane; let PARAMS = { value: 50, }; onMount(() => { pane = new Tweakpane({ container: document.getElementById('pane-container'), }); pane.addInput(PARAMS, 'value', { min: 0, max: 100, step: 1, }); pane.on('change', (ev) => { console.log(ev.value); }); }); onDestroy(() => { if (pane) { pane.dispose(); } }); ``` -------------------------------- ### Import HomeGrid Component in Svelte Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/index.mdx This snippet shows how to import and use the HomeGrid component from the examples directory in a Svelte file. The `client:only="svelte"` directive ensures it's rendered only on the client side. ```svelte import HomeGrid from '../../examples/docs/HomeGrid.svelte'
``` -------------------------------- ### Integrate Button Component in +page.svelte Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/getting-started.md Add the Button component to your main page route file. This example shows the necessary imports and the component usage within the Svelte template. ```svelte

Welcome to SvelteKit

Visit svelte.dev/docs/kit to read the documentation

Internal changes: {internalCount}

External changes: {externalCount}

``` -------------------------------- ### Per-Component Import for Components (Production) Source: https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/docs/src/content/docs/docs/index.mdx Illustrates the recommended production approach of importing components individually from their specific paths to aid tree shaking. ```svelte