Skip to documentation
DocsFormsSwitch
Component library

Forms / COMPONENT

Switch

Web · implementedDesktop · preview

Toggle kontrol on/off dengan affordance visual.

import { Switch } from "./vendor/syne-ui/index.js";TypeScript ready
Live preview

Notifications: on

Interactive example · Try the controls with your mouse or keyboard.

Start with an example

Import the component and adapt it to your interface.

Example.tsxTSX
import { Switch } from "./vendor/syne-ui/index.js";

export function Example() {
  return (
    <Switch defaultChecked>Notifications</Switch>
  );
}
Make it yours

Use className and --syne-* tokens to match your design system.