import clsx from "clsx"; import type { Orientation } from "@camome/system"; import { joinLabelIds } from "../../utils/joinLabelIds"; import { FormField, type FormFieldProps } from "../FormField"; import styles from "./styles.module.scss"; type NativeProps = JSX.IntrinsicElements["div"]; export type RadioGroupProps = { orientation?: Orientation; } & FormFieldProps & NativeProps; export function RadioGroup({ orientation = "vertical", id, label, description, error, children, ...props }: RadioGroupProps) { return ( {({ labelId, descriptionId, errorId }) => (
{children}
)}
); }