UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

20 lines (17 loc) 455 B
import { jsx } from 'react/jsx-runtime'; import { cerberus } from '../../system/index.js'; function Theme(props) { const { mode, theme, ...nativeProps } = props; const colorMode = mode || "light"; const themeName = theme || "cerberus"; return /* @__PURE__ */ jsx( cerberus.div, { ...nativeProps, "data-panda-theme": themeName, "data-color-mode": colorMode, children: props.children } ); } export { Theme };