HostFileInput: allow overriding placeholder
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user