hoda-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
11 lines (10 loc) • 531 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { forwardRef } from 'react';
import { mergeDeep } from '../../helpers/mergeDeep';
import { useTheme } from '../Flowbite/ThemeContext';
export const Radio = forwardRef(({ theme: customTheme = {}, className, ...props }, ref) => {
const theme = mergeDeep(useTheme().theme.radio, customTheme);
return _jsx("input", { ref: ref, className: classNames(theme.base, className), type: "radio", ...props });
});
Radio.displayName = 'Radio';