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

26 lines
521 B
TypeScript

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