Skip to content

Add two additional RendererInfo examples #34085

@guardrex

Description

@guardrex

Description

To display content until the component is interactive ...

@if (!RendererInfo.IsInteractive)
{
    <p>Connecting to the assistant...</p>
}
else
{
    // Code to display chatbot messages
}

In a form that sends messages to the chatbot ...

<button ... disabled="@(chatState is null || !RendererInfo.IsInteractive)">
    Send
</button>

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/render-modes.md

Document ID

7c9948a3-9886-8097-6014-492a4c21ea4e

Article author

@guardrex

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions