HostFileInput: allow overriding placeholder

This commit is contained in:
Johannes Kirschbauer
2025-08-05 13:45:54 +02:00
parent ab63f0d7a4
commit 80c8cc8628

View File

@@ -19,6 +19,7 @@ export type HostFileInputProps = FieldProps &
TextFieldRootProps & { TextFieldRootProps & {
onSelectFile: () => Promise<string>; onSelectFile: () => Promise<string>;
input?: PolymorphicProps<"input", TextFieldInputProps<"input">>; input?: PolymorphicProps<"input", TextFieldInputProps<"input">>;
placeholder?: string;
}; };
export const HostFileInput = (props: HostFileInputProps) => { export const HostFileInput = (props: HostFileInputProps) => {
@@ -79,7 +80,7 @@ export const HostFileInput = (props: HostFileInputProps) => {
: styles.horizontal_button, : styles.horizontal_button,
)} )}
> >
No Selection {props.placeholder || "No Selection"}
</Button> </Button>
)} )}