Control Components
Checkbox
A checkbox.
Wraps Tweakpane's boolean input binding.
Usage outside of a <Pane> component will implicitly wrap the checkbox in <Pane position="inline">.
Enabled: false
<script lang="ts"> import { Checkbox } from 'svelte-tweakpane-ui'
let reticulationEnabled: boolean = false</script>
<Checkbox bind:value={reticulationEnabled} label="Reticulation" /><pre>Enabled: {reticulationEnabled}</pre>| optional | |
| Description | Prevent interactivity and gray out the control. |
|---|---|
| Type | boolean |
| Default | false |
| optional | |
| Description | Text displayed next to control. |
|---|---|
| Type | string |
| Default | undefined |
| optional | |
| Description | Custom color scheme. |
|---|---|
| Type | Theme |
| Default | undefinedInherits default Tweakpane theme equivalent to ThemeUtils.presets.standard, or the theme set with setGlobalDefaultTheme(). |
| bindablerequired | |
| Description | The value to control. |
|---|---|
| Type | boolean |
| Description | Fires when This event is provided for advanced use cases. It's usually preferred to bind to the The |
|---|---|
| Extends | ValueChangeEvent |
| Type | CheckboxChangeEvent |