MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / block

Function block

dashboard/shell/src/sdk.jsx:123–131  ·  view source on GitHub ↗
(tag, base)

Source from the content-addressed store, hash-verified

121 * bundles render. Styling lives in shell/src/styles.css (.ts-* classes). */
122
123function block(tag, base) {
124 return function Component({ className, children, ...rest }) {
125 return React.createElement(
126 tag,
127 { className: cn(base, className), ...rest },
128 children,
129 );
130 };
131}
132
133export const Card = block("div", "ts-card");
134export const CardHeader = block("div", "ts-card-header");

Callers 1

sdk.jsxFile · 0.85

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected