useChangeFilesField

Return an onChange handler for file inputs used with useMessageFormContext.
app.tsx
import { useChangeFilesField } from '@superinterface/react' export const FileInput = () => { const onChange = useChangeFilesField() return ( <input type="file" multiple onChange={onChange} /> ) }

Returns

A change handler that updates the file list in useMessageFormContext.