
<textarea class="@ClassTag fr-webreport-input" @bind="InputValue"></textarea>

@code {

    [Parameter]
    public TextObject TextObject { get; set; }

    [Parameter]
    public string ClassTag { get; set; }

    [Parameter]
    public InputChanged OnChange { get; set; }

    private string InputValue
    {
        get => TextObject.Text;
        set
        {
            if (!value.IsNullOrEmpty())
            {
                TextObject.Text = value.Replace("\n", "\r\n");

                OnChange.Invoke();
            }
        }
    }
}
