MCPcopy
hub / github.com/maxchehab/phelia / TextProps

Interface TextProps

src/core/components.tsx:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26type PheliaChildren = PheliaChild | PheliaChild[];
27
28interface TextProps {
29 /** The content of the text component */
30 children: React.ReactText | React.ReactText[];
31 /**
32 * Indicates whether emojis in a text field should be escaped into the colon emoji format.
33 * This field is only usable when type is plain_text.
34 */
35 emoji?: boolean;
36 /** The formatting to use for this text object. */
37 type: "plain_text" | "mrkdwn";
38 /**
39 * When set to false (as is default) URLs will be auto-converted into links,
40 * conversation names will be link-ified, and certain mentions will be automatically
41 * parsed. Using a value of true will skip any preprocessing of this nature, although
42 * you can still include manual parsing strings. This field is only usable when type is
43 * mrkdwn.
44 */
45 verbatim?: boolean;
46}
47
48/**
49 * An component containing some text, formatted either as plain_text or using mrkdwn,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected