Updated the UI of the application

This commit is contained in:
2025-05-26 20:25:27 +03:00
parent 8ba9448beb
commit dc40f4ebe4
10 changed files with 220 additions and 71 deletions

View File

@@ -0,0 +1,24 @@
<div class="form-group">
<input
class="form-control rounded-pill shadow-sm px-4 py-2 border-0"
placeholder="@Placeholder"
@bind="Value"
@oninput="OnInput" />
</div>
@code {
[Parameter] public string Placeholder { get; set; } = string.Empty;
[Parameter] public string Value { get; set; } = string.Empty;
[Parameter] public EventCallback<string> ValueChanged { get; set; }
private async Task OnInput(ChangeEventArgs e)
{
if (e.Value is string newValue)
{
Value = newValue;
await ValueChanged.InvokeAsync(Value);
}
}
}