gradio/js/file
pngwn 4cfb6eebf6
chore: update versions (#8523)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 11:54:46 -04:00
..
shared Change client submit API to be an AsyncIterable and support more platforms (#8451) 2024-06-06 13:16:14 +01:00
CHANGELOG.md chore: update versions (#8523) 2024-06-25 11:54:46 -04:00
Example.svelte
File.stories.svelte
FileUpload.stories.svelte
Index.svelte add delete event to File component (#8417) 2024-06-05 12:14:10 +00:00
package.json chore: update versions (#8523) 2024-06-25 11:54:46 -04: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;