File Input
File upload trigger with dropzone support and validation.
Generado a partir del código fuente público del paquete.
API
FileInputFileItemPropsinterfaz
Propiedades
class?stringindexnumber— Index of the file in the list.style?string | CSSProperties
hijos: Element
FileInputFileListPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element | (file: File, index: () => number) => Element
FileInputFileRemovePropsinterfaz
Propiedades
class?stringindex?number— Index of the file to remove. If omitted, uses FileItem context.style?string | CSSProperties
hijos: Element
FileInputHiddenInputPropsinterfaz
Propiedades
class?string
FileInputRootPropsinterfaz
Propiedades
accept?string[]— Accepted MIME types (e.g. 'image/*', 'application/pdf').class?stringdisabled?boolean— Whether the file input is disabled.files?File[]— Controlled file list.id?string— Element id.invalid?boolean— Whether the field is invalid.maxFiles?number— Maximum number of files.maxFileSize?number— Maximum file size in bytes.multiple?boolean— Whether multiple files can be selected.name?string— Form field name.onFilesChange?(files: File[]) => void— Called when the file list changes.onReject?(files: File[], reasons: string[]) => void— Called when files are rejected during validation.required?boolean— Whether the field is required.style?string | CSSProperties
hijos: Element
FileInputTriggerPropsinterfaz
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element
FileItemcomponente
FileItem(props: FileInputFileItemProps): Element
Propiedades
class?stringindexnumber— Index of the file in the list.style?string | CSSProperties
hijos: Element
FileListcomponente
FileList(props: FileInputFileListProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element | (file: File, index: () => number) => Element
FileRemovecomponente
FileRemove(props: FileInputFileRemoveProps): Element
Propiedades
class?stringindex?number— Index of the file to remove. If omitted, uses FileItem context.style?string | CSSProperties
hijos: Element
HiddenInputcomponente
HiddenInput(props: FileInputHiddenInputProps): Element
Propiedades
class?string
Rootcomponente
Root(props: FileInputRootProps): Element
Propiedades
accept?string[]— Accepted MIME types (e.g. 'image/*', 'application/pdf').class?stringdisabled?boolean— Whether the file input is disabled.files?File[]— Controlled file list.id?string— Element id.invalid?boolean— Whether the field is invalid.maxFiles?number— Maximum number of files.maxFileSize?number— Maximum file size in bytes.multiple?boolean— Whether multiple files can be selected.name?string— Form field name.onFilesChange?(files: File[]) => void— Called when the file list changes.onReject?(files: File[], reasons: string[]) => void— Called when files are rejected during validation.required?boolean— Whether the field is required.style?string | CSSProperties
hijos: Element
Triggercomponente
Trigger(props: FileInputTriggerProps): Element
Propiedades
class?stringstyle?string | CSSProperties
hijos: Element