@inherits FormComponent<T, string>;
@typeparam T;
@namespace Connected.Components
@using Microsoft.AspNetCore.Components.Forms

<InputControl Class="@Classname" Error="HasErrors" ErrorText="@GetErrorText()" Required="@Required">
    <InputContent>
        <InputFile OnChange="OnChange" id="@_id" class="@InputClass" style="@InputStyle" hidden="@(Hidden ? "" : null)" multiple="@(typeof(T) == typeof(IReadOnlyList<IBrowserFile>) ? "" : null)" accept="@Accept" @attributes="CustomAttributes" />
        @if (ButtonTemplate != null)
        {
            @ButtonTemplate(_id)
        }
        @if (SelectedTemplate != null)
        {
            @SelectedTemplate(_value)
        }
    </InputContent>
</InputControl>