Svelvet home page
Search...
⌘K
open-source-labs/Svelvet
open-source-labs/Svelvet
Search...
Navigation
Data Flow
Toggle
Documentation
GitHub
Overview
Introduction
Changelog
Roadmap
Upgrading
Getting Started
Installation
Styling
Styling
Components
Svelvet
Node
Anchor
Edge
Drawer
Group
Resizer
Minimap
Controls
Background
Theme Toggle
Contrast Theme
Data Flow
Overview
Slider
Knob
Radio Group
Color Picker
Toggle
Examples
Database Visualizer
Flowchart
Shapes
On this page
Description
Props
Data Flow
Toggle
A simple true/false switch for use with our data flow system
Description
Toggle is a simple switch component that interfaces with Svelvet input and output stores. Toggle presents a switch that can be interacted with to toggle betweem true and false.
Refer to the overview in this section for more detailed usage.
Props
parameterStore
CustomWritable<boolean>
required
The input store associated with the parameter.
color
CSS Color String
default:
"limegreen"
Toggle background color when switch is set to true.
Color Picker
Database Visualizer
Assistant
Responses are generated using AI and may contain mistakes.