Get Text Prop Element (Beta)
Get Text Prop Element (Beta)
Get Text Prop Element (Beta)
element.getTextPropElement(propId)Returns the TextPropElement or RichTextPropElement that corresponds to a textContent or richText prop on a component instance. Returns null if the prop does not exist or is not a text-based prop.
Text prop elements behave like containers — use their append() and prepend() methods to insert child elements directly into the prop’s content area.
These methods are in public beta and may change with future releases.
element.getProps() or element.searchProps().Promise<TextPropElement | RichTextPropElement | null>
A Promise that resolves to a TextPropElement (for textContent props) or RichTextPropElement (for richText props), or null if the prop does not exist or is not a text-based prop type.