BetaBeta pública — Consulta las notas de lanzamiento
Documentación

File Input

File upload trigger with dropzone support and validation.

Paquete
@solidiom/file-input
Versión
0.6.0
Estado
experimental

Generado a partir del código fuente público del paquete.

API

FileInputFileItemPropsinterfaz

Propiedades

class?
string
index
number — Index of the file in the list.
style?
string | CSSProperties

hijos: Element

Ver código fuente

FileInputFileListPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element | (file: File, index: () => number) => Element

Ver código fuente

FileInputFileRemovePropsinterfaz

Propiedades

class?
string
index?
number — Index of the file to remove. If omitted, uses FileItem context.
style?
string | CSSProperties

hijos: Element

Ver código fuente

FileInputHiddenInputPropsinterfaz

Propiedades

class?
string

Ver código fuente

FileInputRootPropsinterfaz

Propiedades

accept?
string[] — Accepted MIME types (e.g. 'image/*', 'application/pdf').
class?
string
disabled?
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

Ver código fuente

FileInputTriggerPropsinterfaz

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

FileItemcomponente

                        FileItem(props: FileInputFileItemProps): Element
                      

Propiedades

class?
string
index
number — Index of the file in the list.
style?
string | CSSProperties

hijos: Element

Ver código fuente

FileListcomponente

                        FileList(props: FileInputFileListProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element | (file: File, index: () => number) => Element

Ver código fuente

FileRemovecomponente

                        FileRemove(props: FileInputFileRemoveProps): Element
                      

Propiedades

class?
string
index?
number — Index of the file to remove. If omitted, uses FileItem context.
style?
string | CSSProperties

hijos: Element

Ver código fuente

HiddenInputcomponente

                        HiddenInput(props: FileInputHiddenInputProps): Element
                      

Propiedades

class?
string

Ver código fuente

Rootcomponente

                        Root(props: FileInputRootProps): Element
                      

Propiedades

accept?
string[] — Accepted MIME types (e.g. 'image/*', 'application/pdf').
class?
string
disabled?
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

Ver código fuente

Triggercomponente

                        Trigger(props: FileInputTriggerProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente