Skip to content

AIDK API Reference / aidk-ai-sdk / User

Function: User() ​

ts
function User(props: {
  children?:   | string
     | Element;
  content?: AiSdkContent;
}): Element;

Defined in: packages/adapters/ai-sdk/src/components.tsx:265

AI SDK-style User message component.

Convenience wrapper for user messages.

Parameters ​

ParameterType
props{ children?: | string | Element; content?: AiSdkContent; }
props.children?| string | Element
props.content?AiSdkContent

Returns ​

Element

Example ​

tsx
<User>What is the weather?</User>

Released under the MIT License.