MCPcopy
hub / github.com/botui/botui / MessageOption

Interface MessageOption

typings/index.d.ts:32–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 * @interface MessageOption
31 */
32export interface MessageOption {
33 /**
34 * Set to true if you want to show a loading state '3 animated dots'.
35 * Available in version >= 0.3.1
36 *
37 * @type {boolean}
38 * @memberof MessageOption
39 */
40 loading?: boolean;
41 /**
42 * Wait before showing the message. in milliseconds.
43 *
44 * @type {number}
45 * @memberof MessageOption
46 */
47 delay?: number;
48 /**
49 * Either 'text' or 'embed'.
50 * If you set this to 'embed', BotUI will create an `iframe` element and set `content` as its `src`.
51 *
52 * @type {('text' | 'embed')}
53 * @memberof MessageOption
54 */
55 type: 'text' | 'embed';
56 /**
57 * Should be a URL if type is 'embed', text otherwise.
58 *
59 * @type {string}
60 * @memberof MessageOption
61 */
62 content: string;
63 /**
64 * Should be shown aligned to right side.
65 *
66 * @type {false}
67 * @memberof MessageOption
68 */
69 human?: false;
70 /**
71 * A string or array of custom CSS classes you want to be added.
72 *
73 * @type {string|string[]}
74 * @memberof MessageOption
75 */
76 cssClass?: string | string[];
77}
78
79/**
80 * Actions method option

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…