Rxova
Skip to content

useFileInput

function useFileInput(options): UseFileInputResult;

Headless state for a file field: the selection, the drag state, validation, announcements, and the object-URL lifecycle. Exported so a consumer can build a completely custom renderer without reimplementing the fiddly parts — the preview revocation and the drag-counter especially.

ParameterType
optionsUseFileInputOptions

UseFileInputResult