diff --git a/packages/ui/elements/Radio.tsx b/packages/ui/elements/Radio.tsx index e57b8c4..67dc357 100644 --- a/packages/ui/elements/Radio.tsx +++ b/packages/ui/elements/Radio.tsx @@ -14,15 +14,15 @@ export function Radio({ value = null, options, spaceProps, onChange, ...props }: if (onChange) onChange(event.target.value); } + const buttons = options?.map((option) => ( + + {option.label} + + )); + return ( - - {options?.map((option) => ( - - {option.label} - - ))} - + {spaceProps ? {buttons} : buttons} ); }