gradio/js/gallery
pngwn bbf9ba7e99
i am changesets now (#9612)
* version

* fix
2024-10-09 13:46:26 +01:00
..
shared 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
CHANGELOG.md i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
Gallery.stories.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
Gallery.test.ts 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
Index.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
package.json i am changesets now (#9612) 2024-10-09 13:46:26 +01:00
README.md
types.ts 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00

@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;