MCPcopy Create free account
hub / github.com/editablejs/editable / CompositionString

Function CompositionString

packages/editor/src/components/string.tsx:87–90  ·  view source on GitHub ↗
(props: { text: string })

Source from the content-addressed store, hash-verified

85}
86
87const CompositionString = (props: { text: string }) => {
88 const { text } = props
89 return <u {...{ [DATA_EDITABLE_COMPOSITION]: true }}>{text}</u>
90}
91
92/**
93 * Leaf strings without text, render as zero-width strings.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…