gradio/js/file
pngwn e9bb445a63
chore: update versions (#6308)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-07 15:50:13 -08:00
..
shared strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
CHANGELOG.md chore: update versions (#6308) 2023-11-07 15:50:13 -08:00
Example.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
File.stories.svelte Fix stories (#6244) 2023-11-02 12:10:11 +00:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#6308) 2023-11-07 15:50:13 -08:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/file

<script>
	import { BaseFile, BaseFileUpload, FilePreview, BaseExample } from "@gradio/file";
</script>

BaseFile

	export let value: FileData | FileData[] | null = null;
	export let label: string;
	export let show_label = true;
	export let selectable = false;
	export let height: number | undefined = undefined;
	export let i18n: I18nFormatter;

BaseFileUpload

	export let value: null | FileData | FileData[];
	export let label: string;
	export let show_label = true;
	export let file_count = "single";
	export let file_types: string[] | null = null;
	export let selectable = false;
	export let root: string;
	export let height: number | undefined = undefined;
	export let i18n: I18nFormatter;

FilePreview

	export let value: FileData | FileData[];
	export let selectable = false;
	export let height: number | undefined = undefined;
	export let i18n: I18nFormatter;

BaseExample

	export let value: FileData;
	export let type: "gallery" | "table";
	export let selected = false;