SoybeanUI is now VeanUIMigration guidePackages moved to @vean/aria and @vean/ui, and the docs moved to veanui.com.This site redirects in Nov 2026; the @soybeanjs packages are deprecated in Apr 2027.
Back to catalog
Component detail entry
Forms
@soybeanjs/ui
SSwitch

Switch

Switch belongs to the Forms category. Start with demos and usage, then use the API tables to finish integration and styling decisions.

Use the quick jump panel to reach overview, usage, demos, and API first, then continue through the full page.

Quick jump

Related components

If you are composing interactions in the same family, these components usually pair well together.

Changelog

Version history is grouped by release so you can quickly see what changed for this component across published versions.

v0.20.0

2026-05-12

Compare release

Feature

add direction support for switch component

Scope: switchAuthors: soybeanfeView commitf6453

v0.19.0

2026-05-11

Compare release

Feature

Implement SwitchCompact

Scope: switchAuthors: soybeanjs, CopilotKit, soybeanfeView commit71ab0

v0.0.2

2025-11-18

Compare release

Feature

introduce SSwitch component along with SwitchRoot and SwitchThumb, implementing theme context and enhancing switch functionality

Scope: switchAuthors: soybeanjsView commitaad68

Feature

enhance switch examples with new size, shape, and slot variations; update default switch value and card title

Scope: switchAuthors: soybeanjsView commit862dd

Feature

add base example for SSwitch component in playground

Scope: switchAuthors: soybeanjsView commit603cc

Style

update card title from 'Separator' to 'Switch' for clarity in the switch example

Scope: switchAuthors: soybeanjsView commit4c05d

Style

improve type handling in context and update aria-checked logic for better accessibility

Scope: switchAuthors: soybeanjsView commit22fcf

Feature

introduce SSwitch component along with SwitchRoot and SwitchThumb, implementing theme context and enhancing switch functionality

Scope: switchAuthors: soybeanjsView commitaad68

Feature

enhance switch examples with new size, shape, and slot variations; update default switch value and card title

Scope: switchAuthors: soybeanjsView commit862dd

Feature

add base example for SSwitch component in playground

Scope: switchAuthors: soybeanjsView commit603cc

Style

update card title from 'Separator' to 'Switch' for clarity in the switch example

Scope: switchAuthors: soybeanjsView commit4c05d

Style

improve type handling in context and update aria-checked logic for better accessibility

Scope: switchAuthors: soybeanjsView commit22fcf