Skip to content

Commit c81205e

Browse files
committed
feat radio
1 parent 54cc9ea commit c81205e

File tree

1 file changed

+3
-5
lines changed
  • packages/components/src/components/RadioGroup

1 file changed

+3
-5
lines changed

packages/components/src/components/RadioGroup/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ export function RadioGroup({
6767
return (
6868
<Flex
6969
className={classNames?.container}
70-
style={{
71-
flexDirection: variant === 'button' ? 'row' : direction,
72-
gap: variant === 'button' ? 0 : direction === 'row' ? '30px' : '16px',
73-
...styles?.container,
74-
}}
70+
flexDir={variant === 'button' ? 'row' : direction}
71+
gap={variant === 'button' ? 0 : direction === 'row' ? '30px' : '16px'}
72+
style={styles?.container}
7573
>
7674
{options.map(({ value: optionValue, label }, idx) => {
7775
const stringValue = String(optionValue)

0 commit comments

Comments
 (0)