@react95/core
Version:
Windows 95 styleguide
18 lines (17 loc) • 619 B
JavaScript
import React, { forwardRef } from "react";
import { label, field, icon, text } from "./Checkbox.css.mjs";
const Checkbox = forwardRef(
({ children, style, label: label$1, disabled = false, ...rest }, ref) => /* @__PURE__ */ React.createElement("label", { style, className: label }, /* @__PURE__ */ React.createElement(
"input",
{
className: field,
type: "checkbox",
disabled,
...rest,
ref
}
), /* @__PURE__ */ React.createElement("span", { className: icon }), /* @__PURE__ */ React.createElement("span", { className: text }, children || label$1))
);
export {
Checkbox
};