@carton-org/react-neumorphism
Version:
A React component library implementing the neumorphism design style
17 lines (16 loc) • 552 B
JavaScript
import { jsx as r } from "@emotion/react/jsx-runtime";
import { withTheme as i } from "@emotion/react";
import { forwardRef as l } from "react";
import { StyledBadge as p } from "./badge.styles.js";
import s from "../Typography/Typography.js";
const g = l(({
children: o,
inset: t = !1,
size: e = "sm",
badgeStyle: m,
badgeLabelStyle: a,
...f
}, d) => /* @__PURE__ */ r(p, { ref: d, $inset: t, $size: e, $badgeStyle: m, ...f, children: /* @__PURE__ */ r(s, { size: e, labelStyle: a, children: o }) })), B = i(g);
export {
B as default
};