UNPKG

@noema/motif

Version:

A type-safe styling library for React components built on top of [Vanilla Extract](https://vanilla-extract.style/). `@noema/motif` allows you to create styled components with consistent theme-aware props that cleanly separate styling from component logic.

7 lines (6 loc) 238 B
export function composeRender(value, wrap) { return (renderProps) => { const renderValue = typeof value === 'function' ? value(renderProps) : value; return wrap ? wrap(renderValue, renderProps) : renderValue; }; }