UNPKG

react-box-tools

Version:

Box tools react components, utils and hooks

14 lines (13 loc) 495 B
import { jsxs as a, jsx as e } from "react/jsx-runtime"; import { c as m } from "./clsx-DG-5vF7T.js"; import { useId as l } from "react"; const h = (o) => { const { className: r, tabIndex: s = 0, ...t } = o, c = l(); return /* @__PURE__ */ a("label", { className: m(`checkbox ${r}`), htmlFor: c, children: [ /* @__PURE__ */ e("input", { tabIndex: s, ...t, type: "checkbox", id: c }), /* @__PURE__ */ e("span", { className: "checkmark", tabIndex: s }) ] }); }; export { h as C };