Conversation
Generated component following the Webflow code components scaffold pattern. Includes full and simple prop surface variations.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Component: ToggleSwitch
Description
A switch/toggle component for on/off boolean states. Displays as a horizontal track with a circular sliding thumb that animates smoothly between left (off) and right (on) positions. Includes a label that can be positioned to the left or right of the switch, with optional description text below the label. Supports three sizes (small, medium, large) that scale the track, thumb, and typography. Features a disabled state that grays out the component and prevents interaction. The on state uses a configurable accent color via CSS variable. Includes a visible focus ring for keyboard accessibility. Optionally displays on/off icons inside the thumb circle.
What's Included
var(--background-primary, #ffffff), etc.font-family: inherit; color: inherit;ToggleSwitch.webflow.tsx) — 20+ props for developers/agenciesToggleSwitchSimple.webflow.tsx) — core text/link props for clientswf-toggle-switch-for Shadow DOM safetyTesting
npm install && npm run devruns locallynpx webflow library shareimports successfully