Forms
Checkbox
A yes/no choice with a label and optional description.
import { Checkbox } from "@percentsa/ui";Examples
Code
export function CheckboxExample() {
const t = useT();
return (
<Stack gap={4}>
<Checkbox label={t("Send me project updates", "أرسل لي تحديثات المشروع")} defaultChecked />
<Checkbox label={t("I agree to the terms", "أوافق على الشروط")} description={t("You can withdraw at any time.", "يمكنك الانسحاب في أي وقت.")} />
<Checkbox label={t("Unavailable", "غير متاح")} disabled />
</Stack>
);
}