Skip to content

Function: UiText()

ts
function UiText(props: UiTextProps): Element;

Defined in: src/UI/components/Text.tsx:92

Text component for displaying static or dynamic text content with Markdown support.

Parameters

ParameterTypeDescription
propsUiTextPropsConfiguration object

Returns

Element

Examples

Basic usage with static text

tsx
<UiText text="Hello, World!" />

Usage with callout syntax

tsx
<UiText text=":::warning\nPlease review before proceeding.\n:::" />

Usage with callout followed by text

tsx
<UiText text=":::info\nImportant notice\n:::\nAdditional details here." />

Matterway Assistant SDK Documentation