FileField

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

Properties

PropertyTypeDefaultDescription
isReadOnlyboolean-Whether the component is read only.
childrenReactNode-
wrapWithReactElement<unknown, string | JSXElementConstructor<any>>-
refRef<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
keyKey-
namestring-
acceptstring-
multipleboolean-
validationBehavior"native" | "aria"'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.
isDisabledboolean-Whether the input is disabled.
isRequiredboolean-Whether user input is required on the input before form submission.
isInvalidboolean-Whether the value is invalid.

Events

PropertyTypeDefaultDescription
onChangeFileInputOnChangeHandler-Handler that is called when the file input changes.

Auf dieser Seite