Files
MattrixwvReactComponents/lib/component/input/radio/MoltenRadioButton.tsx

26 lines
506 B
TypeScript

import type { RadioButtonProps } from "$/types/InputTypes";
import clsx from "clsx";
import { forwardRef } from "react";
import RadioButton from "./RadioButton";
const MoltenRadioButton = forwardRef<HTMLInputElement, RadioButtonProps>(({
className,
...props
}, ref ) => {
return (
<RadioButton
className={clsx(
"group-data-checked:bg-molten",
className
)}
ref={ref}
{...props}
/>
);
});
MoltenRadioButton.displayName = "MoltenRadioButton";
export default MoltenRadioButton;