import { jsx as _jsx } from "react/jsx-runtime";
import React, { useId } from "react";
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
export const RadioGroup = React.forwardRef(({ children, className, id: propId, name, ...props }, ref) => {
    const prefix = useId();
    const id = propId ?? `${prefix}-radio-group`;
    return (_jsx(RadioGroupPrimitive.Root, { className: className, id: id, name: name, ...props, ref: ref, children: children }));
});
RadioGroup.displayName = "RadioGroup";
//# sourceMappingURL=radio-group.js.map