Forms
Switch
An on/off setting that applies at once.
import { Switch } from "@percentsa/ui";Examples
Code
export function SwitchExample() {
const t = useT();
return (
<Stack gap={4}>
<Switch label={t("Email notifications", "إشعارات البريد")} defaultChecked />
<Switch label={t("Weekly report", "تقرير أسبوعي")} description={t("Every Sunday at 9:00", "كل أحد الساعة 9:00")} />
</Stack>
);
}