UNPKG

@carton-org/react-neumorphism

Version:

A React component library implementing the neumorphism design style

19 lines (18 loc) 688 B
import { jsxs as c, jsx as e } from "@emotion/react/jsx-runtime"; import { withTheme as i } from "@emotion/react"; import { forwardRef as d } from "react"; import n from "../Typography/Typography.js"; import { StyledCheckboxContainer as p, StyledHiddenInput as s, StyledCheckboxLabel as f } from "./checkbox.styles.js"; const x = d(({ id: o, label: t, inputSize: r = "sm", checkboxLabelStyle: m, ...h }, l) => /* @__PURE__ */ c(p, { children: [ /* @__PURE__ */ e(s, { ref: l, id: o, type: "checkbox", ...h }), /* @__PURE__ */ e(f, { htmlFor: o, $size: r, children: /* @__PURE__ */ e(n, { size: r, labelStyle: m, children: t }) }) ] })), S = i(x); export { S as default };