import { createId } from "../../../utils/createId";
import { VuiFlexContainer } from "../../flex/FlexContainer";
import { VuiFlexItem } from "../../flex/FlexItem";
type Props = {
checked: boolean;
onChange: () => void;
groupName: string;
label?: string;
disabled?: boolean;
};
export const VuiRadioButton = ({ checked, onChange, label, groupName, disabled, ...rest }: Props) => {
const id = createId();
const radioButton = (
);
if (!label) {
return radioButton;
}
return (
{radioButton}
);
};