MCPcopy Create free account
hub / github.com/chipnertkj/chipbox / createTextNode

Function createTextNode

node/chipbox-solid-render/src/renderer.ts:17–27  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

15
16/** Create a text node with the given contents. */
17export function createTextNode(value: string): JSX.Element {
18 return {
19 type: "text",
20 id: undefined,
21 children: undefined,
22 font: "",
23 weight: 400,
24 size: 16,
25 color: undefined,
26 };
27}
28
29/** Replace the contents of the given text node. */
30export function replaceText(textNode: JSX.Element, value: string): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected