diff --git a/plugins/ui/src/js/src/elements/Radio.tsx b/plugins/ui/src/js/src/elements/Radio.tsx index 5fc41f855..438f30563 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,10 +27,13 @@ export function Radio({ const onKeyDown = useKeyboardEventCallback(serializedOnKeyDown); const onKeyUp = useKeyboardEventCallback(serializedOnKeyUp); + const value = valueProp ?? (typeof children === 'string' ? children : ''); + return (