MCPcopy
hub / github.com/streamlit/streamlit / text

Function text

frontend/lib/src/render-tree/test-utils.ts:38–52  ·  view source on GitHub ↗
(
  textArg: string,
  scriptRunId = NO_SCRIPT_RUN_ID,
  elementHash?: string
)

Source from the content-addressed store, hash-verified

36
37/** Create a `Text` element node with the given properties. */
38export function text(
39 textArg: string,
40 scriptRunId = NO_SCRIPT_RUN_ID,
41 elementHash?: string
42): ElementNode {
43 const element = makeProto(Element, { text: { body: textArg } })
44 return new ElementNode(
45 element,
46 ForwardMsgMetadata.create(),
47 scriptRunId,
48 FAKE_SCRIPT_HASH,
49 undefined,
50 elementHash
51 )
52}
53
54/** Create a text input element node with the given properties. */
55export function textInput(

Calls 2

makeProtoFunction · 0.70
createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…