Discover / Forms
Switch
Turn a setting on or off immediately.
Usage notes
Give every switch a clear label. Use it for settings that take effect immediately.
Examples use @easyui/react and its stylesheet. Read the setup guide.
Example source
import { Switch } from "@easyui/react";
export default function Example() {
return (
<div style={{ display: "grid", gap: 16 }}>
<Switch label="Push notifications" description="Stay up to date on activity." defaultChecked />
<Switch label="Email updates" description="Receive occasional emails." />
</div>
);
}