mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 07:17:59 +00:00
Improved secret input fields by adding a toggle visibility feature (#479)
This commit is contained in:
1 parent
e11c15dbab
commit
e3110820d2
9 files changed
+96
-38
No files matched your search
@@ -0,0 +1,20 @@
|
||||
@inherits MSGComponentBase
|
||||
<MudStack Row="true" AlignItems="AlignItems.Center" Class="@this.Class" StretchItems="StretchItems.Start" Wrap="Wrap.NoWrap">
|
||||
<MudTextField
|
||||
T="string"
|
||||
Text="@this.Secret"
|
||||
TextChanged="@this.OnSecretChanged"
|
||||
Label="@this.Label"
|
||||
Placeholder="@this.Placeholder"
|
||||
Adornment="Adornment.Start"
|
||||
AdornmentIcon="@Icons.Material.Filled.VpnKey"
|
||||
AdornmentColor="Color.Info"
|
||||
InputType="@this.InputType"
|
||||
Immediate="true"
|
||||
Validation="@this.Validation"
|
||||
UserAttributes="@SPELLCHECK_ATTRIBUTES"/>
|
||||
|
||||
<MudTooltip Text="@this.ToggleVisibilityTooltip">
|
||||
<MudIconButton Icon="@this.InputTypeIcon" OnClick="() => this.ToggleVisibility()"/>
|
||||
</MudTooltip>
|
||||
</MudStack>
|
||||
Reference in new issue
Block a user