Update radio buttons
This commit is contained in:
@@ -1,25 +1,19 @@
|
||||
import type { RadioButtonProps } from "$/types/InputTypes";
|
||||
import clsx from "clsx";
|
||||
import { forwardRef } from "react";
|
||||
import RadioButton from "./RadioButton";
|
||||
|
||||
|
||||
const MoltenRadioButton = forwardRef<HTMLInputElement, RadioButtonProps>(({
|
||||
export default function MoltenRadioButton({
|
||||
className,
|
||||
...props
|
||||
}, ref ) => {
|
||||
}: Readonly<RadioButtonProps>){
|
||||
return (
|
||||
<RadioButton
|
||||
className={clsx(
|
||||
"group-data-checked:bg-molten",
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
MoltenRadioButton.displayName = "MoltenRadioButton";
|
||||
|
||||
export default MoltenRadioButton;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user