Image Input
import { ImageInput } from '@hanzo/ui'
No examples yet.
Types
export type ImageInputProps = {
/** The current picture, or none. */
src?: string | null
/** What the picture shows, for a reader who cannot see it. */
alt?: string
/** A file was chosen or dropped. */
onChange?: (file: File) => void
onRemove?: () => void
onAbort?: () => void
isUploading?: boolean
/** The file input's `accept`; images by default. A dropped file must match it. */
accept?: string
/** `capture` for a phone's camera. */
capture?: 'user' | 'environment'
/** Names the control (and the hidden file input). */
title?: string
helperText?: string
errorMessage?: string
uploadLabel?: string
removeLabel?: string
abortLabel?: string
disabled?: boolean
required?: boolean
name?: string
}Exports
ImageInputtype ImageInputProps