diff --git a/src/components/radio-group/radio-group.tsx b/src/components/radio-group/radio-group.tsx index aef3109..1ed4475 100644 --- a/src/components/radio-group/radio-group.tsx +++ b/src/components/radio-group/radio-group.tsx @@ -2,8 +2,7 @@ import * as React from 'react'; import * as RadioGroupPrimitive from '@radix-ui/react-radio-group'; import { cn } from '@/lib/utils'; -interface RadioGroupProps - extends React.ComponentPropsWithoutRef { +interface RadioGroupProps extends React.ComponentPropsWithoutRef { direction?: 'horizontal' | 'vertical'; } @@ -11,41 +10,30 @@ interface RadioItemProps extends RadioGroupPrimitive.RadioGroupItemProps { children?: React.ReactNode; } -const RadioGroup = React.forwardRef< - React.ElementRef, - RadioGroupProps ->(({ children, direction = 'horizontal', ...props }, ref) => ( - - {children} - -)); +const RadioGroup = React.forwardRef, RadioGroupProps>( + ({ children, direction = 'horizontal', ...props }, ref) => ( + + {children} + + ) +); RadioGroup.displayName = RadioGroupPrimitive.Root.displayName; -const RadioItem = ({ - id, - value, - children, - disabled, - ...props -}: RadioItemProps) => ( +const RadioItem = ({ id, value, children, disabled, ...props }: RadioItemProps) => (