Well, if anyone needs it, the solution to the problem is to pass the value from the inputbase.
@using System.Diagnostics.CodeAnalysis;
@using BlazorPageScript
@inherits InputBase<string>
<input @attributes="AdditionalAttributes"
name="@NameAttributeValue"
class="@CssClass"
value="@CurrentValueAsString" //here
maxlength="16" />