FileField

Das FileField stellt eine kompakte Lösung dar, um Uploads von Dateien zu ermöglichen.GitHubMarkdown

Properties

PropertyTypeDescription
isReadOnly
boolean
Whether the component is read only.
children
ReactNode
wrapWith
ReactElement<unknown, string | JSXElementConstructor<any>>
ref
Ref<HTMLSpanElement>
Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see React Docs
key
Key
name
string
accept
string
multiple
boolean
validationBehavior
nativeariaDefault: 'native'
Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.
isDisabled
boolean
Whether the input is disabled.
isRequired
boolean
Whether user input is required on the input before form submission.
isInvalid
boolean
Whether the value is invalid.

Events

PropertyTypeDescription
onChange
FileInputOnChangeHandler
Handler that is called when the file input changes.

Auf dieser Seite