gradio/js/file
Hannah fc124964a1
Allow uploading more files in gr.File (#9891)
* add upload to icon buttons in file

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-01 19:16:15 -07:00
..
shared Allow uploading more files in gr.File (#9891) 2024-11-01 19:16:15 -07:00
CHANGELOG.md chore: update versions (#9790) 2024-10-25 12:33:07 -07:00
Example.svelte
File.stories.svelte
FileUpload.stories.svelte
Index.svelte Add .download() event to gr.File (#9887) 2024-11-01 08:12:58 -07:00
package.json chore: update versions (#9790) 2024-10-25 12:33:07 -07: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;