File Upload

File must be PDF format and under 5MB
Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

additional CSS classes

accept :string

accepted file types (e.g. "image/*,.pdf")

multiple :boolean

allow multiple files

false
disabled :boolean

disable the upload

false
max_size :integer

maximum file size in bytes

max_files :integer

maximum number of files

show_preview :boolean

show image previews for selected files

false
compact :boolean

use compact layout

false
size :string

component size

"md"
name :string

form field name

field %FormField{}

a form field struct retrieved from the form

error :boolean

show error state

false
errors :list

list of error messages to display

[]
helper :string

helper text displayed below the component

rest :global
inner_block :slot

Custom dropzone content