(defaultValue);
+
+ useEffect(() => {
+ if (valueProp !== undefined) {
+ setValue(valueProp);
+ }
+ }, [valueProp]);
+
+ const handleChange = (option: RadioOption) => {
+ setValue(option?.value);
+ onChange?.(option);
+ };
+
+ return (
+
+ {options.map((option) => (
+
+ ))}
+
+ );
+};
+
+export type { RadioOption, RadioGroupProps };
+export { RadioGroup };
diff --git a/src/lib/index.ts b/src/lib/index.ts
index 1fc8536..2da4edd 100644
--- a/src/lib/index.ts
+++ b/src/lib/index.ts
@@ -6,3 +6,4 @@ export * from "./Dropdown";
export * from "./Avatar";
export * from "./Slider";
export * from "./Accordion";
+export * from "./RadioGroup";