From 80c8cc862889b4ac8f7d849d36f29d276140481e Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 5 Aug 2025 13:45:54 +0200 Subject: [PATCH] HostFileInput: allow overriding placeholder --- pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx b/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx index 14b2d89e3..58f7cf3ac 100644 --- a/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx +++ b/pkgs/clan-app/ui/src/components/Form/HostFileInput.tsx @@ -19,6 +19,7 @@ export type HostFileInputProps = FieldProps & TextFieldRootProps & { onSelectFile: () => Promise; input?: PolymorphicProps<"input", TextFieldInputProps<"input">>; + placeholder?: string; }; export const HostFileInput = (props: HostFileInputProps) => { @@ -79,7 +80,7 @@ export const HostFileInput = (props: HostFileInputProps) => { : styles.horizontal_button, )} > - No Selection + {props.placeholder || "No Selection"} )}