gradio/js/file
Hannah 053bec98be
Improve CSS token documentation in Storybook (#6399)
* remove width and heights from icons

* add changeset

* add global css vars (light)

* add changeset

* add changeset

* Remove component stories (will document these elsewhere)

* remove rtl param in chatbot story for non rtl text

* formatting

* remove redundant class

* add changeset

* fix row story

* fix broken groot file stories

* revert lock changes

* add changeset

* lockfile

* pnpm lock

* remove colour from webcam icons

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-08 16:23:14 +01:00
..
shared File table style with accessible file name texts (#6520) 2023-11-22 00:46:37 +09:00
CHANGELOG.md chore: update versions (#6575) 2023-12-04 16:14:12 -08:00
Example.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
File.stories.svelte Improve CSS token documentation in Storybook (#6399) 2023-12-08 16:23:14 +01:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#6575) 2023-12-04 16:14:12 -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;