<input
    type="file"
    name="{{ handle }}{{ if max_files !== 1 }}[]{{ /if }}"
    class="{{ [
        'block w-full rounded-md file:mr-4 file:py-2.5 file:px-5 file:rounded-md file:border-0 file:text-sm file:font-semibold',
        'text-gray-900 file:bg-primary-100 file:text-gray-900 hover:file:bg-primary-300' => !$error,
        'pr-10 text-red-900 file:bg-red-300 file:text-white hover:file:bg-red-500 ' => $error
    ] | classes }}"
    {{ if max_files !== 1 }}multiple{{ /if }}
    {{ if visibility === 'read_only' }}disabled{{ /if }}
    {{ if js_driver }}{{ js_attributes }}{{ /if }}
>
