File Input

No documents selected

PDF, DOCX, or image files are accepted.

Attribute Type Documentation Default Value
field %FormField{}

a form field struct

name :string
id :string
label :string
description :string
errors :list []
accept :string
multiple :boolean false
show_selected :boolean false
empty_label :string "No file selected"
size :string

height and font-size, daisyUI's file-input-xs … file-input-xl

"md"
variant :string

colour of the border and the button, daisyUI's file-input-*

appearance :string

ghost: no fill, border or shadow (daisyUI's file-input-ghost)

class :any
rest :global