@carton-org/react-neumorphism
Version:
A React component library implementing the neumorphism design style
20 lines (19 loc) • 674 B
JavaScript
import { jsx as f } from "@emotion/react/jsx-runtime";
import { withTheme as a } from "@emotion/react";
import { forwardRef as c } from "react";
import { StyledBlankIconBox as h, StyledDefaultIconBox as x } from "./iconBox.styles.js";
const B = c(({
inset: i = !1,
rounded: l = !1,
border: d = !1,
blank: m = !1,
size: o = "sm",
width: s,
height: $,
icon: e,
iconBoxStyle: r,
...t
}, n) => m ? /* @__PURE__ */ f(h, { ref: n, $size: o, $iconBoxStyle: r, ...t, children: e }) : /* @__PURE__ */ f(x, { ref: n, $size: o, $width: s, $height: $, $inset: i, $rounded: l, $border: d, $iconBoxStyle: r, ...t, children: e })), y = a(B);
export {
y as default
};