@cerberus-design/react
Version:
The Cerberus Design React component library.
24 lines (19 loc) • 573 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const jsxRuntime = require('react/jsx-runtime');
const index = require('../../system/index.cjs');
function Theme(props) {
const { mode, theme, ...nativeProps } = props;
const colorMode = mode || "light";
const themeName = theme || "cerberus";
return /* @__PURE__ */ jsxRuntime.jsx(
index.cerberus.div,
{
...nativeProps,
"data-panda-theme": themeName,
"data-color-mode": colorMode,
children: props.children
}
);
}
exports.Theme = Theme;