Skip to content
العربية
Forms

RadioGroup

One choice from a short list, arrow keys move between options.

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

Examples

Code
export function RadioGroupExample() {
  const t = useT();
  return (
    <RadioGroup
      aria-label={t("Plan", "الخطة")}
      defaultValue="team"
      options={[
        { value: "project", label: t("Project", "مشروع"), description: t("Fixed scope and price", "نطاق وسعر ثابتان") },
        { value: "team", label: t("Team", "فريق"), description: t("A team that works with yours", "فريق يعمل مع فريقك") },
        { value: "support", label: t("Support", "دعم"), description: t("We run what we built", "نشغّل ما بنيناه") },
      ]}
    />
  );
}