diff --git a/components/dashboard/src/components/podkit/forms/RadioListField.tsx b/components/dashboard/src/components/podkit/forms/RadioListField.tsx index 0cbc495623f305..62b808b1895ea2 100644 --- a/components/dashboard/src/components/podkit/forms/RadioListField.tsx +++ b/components/dashboard/src/components/podkit/forms/RadioListField.tsx @@ -20,6 +20,7 @@ type RadioListFieldProps = { topMargin?: boolean; onChange: (value: string) => void; children: RadioListItem[]; + className?: string; }; export const RadioGroupItem = React.forwardRef< @@ -30,8 +31,7 @@ export const RadioGroupItem = React.forwardRef< = ({ topMargin = true, onChange, children, + className, }) => { const maybeId = useId(); const elementId = id || maybeId; @@ -72,24 +73,19 @@ export const RadioListField: React.FC = ({ return ( {children.map((child, index) => (
-
- {React.cloneElement(child.radio, { - id: `${elementId}-${index}`, - })} - -
+ {React.cloneElement(child.radio, { + id: `${elementId}-${index}`, + })} + {child.hint && {child.hint}}
))}