Forms
Fieldset
Groups choices under a legend with a hint and an error.
import { Fieldset } from "@percentsa/ui";Examples
Code
export function FieldsetExample() {
const t = useT();
return (
<Fieldset legend={t("Contact preference", "طريقة التواصل")} error={t("Choose one.", "اختر واحدة.")}>
<Stack gap={3}>
<Checkbox label={t("Email", "البريد")} />
<Checkbox label={t("Phone", "الهاتف")} />
</Stack>
</Fieldset>
);
}