Skip to content
العربية
Forms

Fieldset

Groups choices under a legend with a hint and an error.

import { Fieldset } from "@percentsa/ui";

Examples

Contact preference

Choose one.

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>
  );
}