diff --git a/plugins/ui/src/js/src/elements/Radio.tsx b/plugins/ui/src/js/src/elements/Radio.tsx index 5fc41f855..3bf497817 100644 --- a/plugins/ui/src/js/src/elements/Radio.tsx +++ b/plugins/ui/src/js/src/elements/Radio.tsx @@ -18,6 +18,8 @@ export function Radio({ onBlur: serializedOnBlur, onKeyDown: serializedOnKeyDown, onKeyUp: serializedOnKeyUp, + value: valueProp, + children, ...props }: SerializedRadioProps): JSX.Element { const onFocus = useFocusEventCallback(serializedOnFocus); @@ -25,15 +27,20 @@ export function Radio({ const onKeyDown = useKeyboardEventCallback(serializedOnKeyDown); const onKeyUp = useKeyboardEventCallback(serializedOnKeyUp); + const value = valueProp ?? (typeof children === 'string' ? children : ''); + return ( + > + {children} + ); }