1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Improve EditableFilePicker documentation

This commit is contained in:
Steffo 2022-06-10 00:01:27 +02:00
parent b05a4607ed
commit 9bdca921b3
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -5,7 +5,7 @@ import { Editable } from "./Editable";
/**
* Controlled input component which displays an `input[type="file"]` in editing mode, and is invisible in preview mode.
*
* Value is the file's [fakepath](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value), as a string.
* Has no value due to how file inputs function in JS and React.
*/
export function EditableFilePicker(props: HTMLProps<HTMLInputElement> & { value?: undefined }) {
return (