mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:07:21 +00:00
24 lines
839 B
Plaintext
24 lines
839 B
Plaintext
@inherits MSGComponentBase
|
|
<MudStack Row="@true" AlignItems="AlignItems.Start">
|
|
<MudTextField
|
|
T="string"
|
|
ReadOnly="@true"
|
|
Label="@this.Label"
|
|
Text="@this.Value"
|
|
Variant="Variant.Outlined"
|
|
Margin="Margin.Dense"
|
|
Lines="@this.Lines"
|
|
MaxLines="@this.MaxLines"
|
|
Sizing="InputSizing.Auto"
|
|
Adornment="@(string.IsNullOrEmpty(this.Icon) ? Adornment.None : Adornment.Start)"
|
|
AdornmentIcon="@this.Icon"
|
|
Style="@this.GetColor()"
|
|
UserAttributes="@USER_INPUT_ATTRIBUTES" />
|
|
|
|
@if (this.ShowingCopyButton)
|
|
{
|
|
<MudTooltip Text="@this.ClipboardTooltip">
|
|
<MudIconButton Icon="@Icons.Material.Filled.ContentCopy" Size="Size.Medium" OnClick="@(() => this.CopyToClipboard(this.Value))"/>
|
|
</MudTooltip>
|
|
}
|
|
</MudStack> |