UNPKG

@carton-org/react-neumorphism

Version:

A React component library implementing the neumorphism design style

20 lines (19 loc) 687 B
import { jsxs as l, jsx as o } from "@emotion/react/jsx-runtime"; import { withTheme as m } from "@emotion/react"; import { StyledRadioContainer as n, StyledRadioInput as p, StyledRadioLabel as s } from "./radio.styles.js"; import y from "../Typography/Typography.js"; const h = ({ id: r, label: e, inputSize: t = "sm", radioContainerStyle: i, radioLabelStyle: a, ...d }) => /* @__PURE__ */ l(n, { $radioContainerStyle: i, children: [ /* @__PURE__ */ o(p, { id: r, type: "radio", ...d }), /* @__PURE__ */ o(s, { htmlFor: r, $inputSize: t, children: /* @__PURE__ */ o(y, { size: t, labelStyle: a, children: e }) }) ] }), u = m(h); export { h as Radio, u as default };