FormFileUpload

Used to upload a file through the file dialog.

<FormFileUpload
	accept="image/*"
	onChange={ (e) => console.log('new image', e) }
	render={ ( { openFileDialog } ) => (
		<div>
			<p>Upload an image below: </p>
			<Button isSecondary onClick={ openFileDialog }>
				Upload image
			</Button>
		</div>
	)}
/>

Which files are accepted can be set as a prop.

GitHub URL
Classification

Category

Components