gradio/js/gallery
pngwn 1b74e214b9
chore: update versions (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 11:54:28 -07:00
..
shared chatbot component tweaks (#8594) 2024-06-24 21:41:06 +00:00
CHANGELOG.md chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
Gallery.stories.svelte
Gallery.test.ts Adds a gr.DownloadButton component (#7518) 2024-02-28 12:07:36 -08:00
Index.svelte Client node fix (#8252) 2024-05-09 12:06:28 +01:00
package.json chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
README.md

@gradio/gallery

<script>
	import { BaseGallery } from "@gradio/gallery";
</script>

BaseGallery

	export let show_label = true;
	export let label: string;
	export let root = "";
	export let root_url: null | string = null;
	export let value: { image: FileData; caption: string | null }[] | null = null;
	export let columns: number | number[] | undefined = [2];
	export let rows: number | number[] | undefined = undefined;
	export let height: number | "auto" = "auto";
	export let preview: boolean;
	export let allow_preview = true;
	export let object_fit: "contain" | "cover" | "fill" | "none" | "scale-down" =
		"cover";
	export let show_share_button = false;
	export let show_download_button = false;
	export let i18n: I18nFormatter;
	export let selected_index: number | null = null;