UNPKG

@meonode/ui

Version:

A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.

2 lines (1 loc) 492 B
import{Node as e,BaseNode as r}from"../core.node.js";import{getElementTypeName as o}from"../helper/common.helper.js";import{NodeUtil as n}from"../util/node.util.js";function t(t){const s=o(t),m=o=>{const s=t(o);return s instanceof r||n.isNodeInstance(s)?e(s.element,s.rawProps).render():s};function c(r={},o){return e(m,r,o).render()}return m.displayName=`Renderer(${s})`,m.__meonodeAcceptsServerCss=!0,c.displayName=`Component(${s})`,c.__meonodeAcceptsServerCss=!0,c}export{t as Component};