gradio/js/file
pngwn 6683ab2589
chore: update versions (#7630)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-08 16:35:23 -08:00
..
shared Fixes: Invalid file_type breaks drag and drop (#7559) 2024-03-05 16:52:22 -05:00
CHANGELOG.md chore: update versions (#7630) 2024-03-08 16:35:23 -08:00
Example.svelte Handle the case where examples is null for all components (#7192) 2024-01-29 16:51:22 -08:00
File.stories.svelte
FileUpload.stories.svelte Fix single file upload display (#7221) 2024-01-30 15:05:33 -05:00
Index.svelte [WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component (#7183) 2024-02-07 14:39:33 -08:00
package.json chore: update versions (#7630) 2024-03-08 16:35:23 -08:00
README.md

@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;