gradio/js/gallery
pngwn 200237d73c
chore: update versions (#6331)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 15:12:33 -08:00
..
shared Gallery preview fix and optionally skip download of urls in postprcess (#6288) 2023-11-03 18:39:25 -04:00
CHANGELOG.md chore: update versions (#6331) 2023-11-10 15:12:33 -08:00
Gallery.stories.svelte Fix stories (#6244) 2023-11-02 12:10:11 +00:00
Gallery.test.ts
Index.svelte handle selected_index prop change for gallery 2023-11-03 16:08:12 +00:00
package.json chore: update versions (#6331) 2023-11-10 15:12:33 -08: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;