@react95/core
Version:
Windows 95 styleguide
18 lines (17 loc) • 578 B
JavaScript
import React, { forwardRef } from "react";
import { label, field, icon, text } from "./RadioButton.css.mjs";
const RadioButton = forwardRef(
({ children, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement("label", { className: label }, /* @__PURE__ */ React.createElement(
"input",
{
type: "radio",
disabled,
className: field,
ref,
...props
}
), /* @__PURE__ */ React.createElement("span", { className: icon }), /* @__PURE__ */ React.createElement("span", { className: text }, children))
);
export {
RadioButton
};