@vertisanpro/flowbite-react
Version:
Non-Official React components built for Flowbite and Tailwind CSS
10 lines (9 loc) • 512 B
JavaScript
import { twMerge } from '@vertisanpro/tailwind-merge';
import React, { forwardRef } from 'react';
import { mergeDeep } from '../../helpers/merge-deep';
import { getTheme } from '../../theme-store';
export const Radio = forwardRef(({ className, theme: customTheme = {}, ...props }, ref) => {
const theme = mergeDeep(getTheme().radio, customTheme);
return React.createElement("input", { ref: ref, type: "radio", className: twMerge(theme.root.base, className), ...props });
});
Radio.displayName = 'Radio';