gradio/js/gallery
renovate[bot] f5b710c919
chore(deps): update dependency eslint to v9 (#8121)
* chore(deps): update dependency eslint to v9

* update deps + fix things

* add changeset

* fix preview

* add changeset

* lockfile

* format

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-03 09:57:08 +01:00
..
shared chore(deps): update dependency eslint to v9 (#8121) 2024-05-03 09:57:08 +01:00
CHANGELOG.md chore: update versions (#8069) 2024-04-25 23:08:27 +00:00
Gallery.stories.svelte Add mobile Chromatic tests (#7222) 2024-02-02 14:21:48 +00:00
Gallery.test.ts Adds a gr.DownloadButton component (#7518) 2024-02-28 12:07:36 -08:00
Index.svelte rework upload to be a class method + pass client into each component (#8179) 2024-05-01 14:55:41 +00:00
package.json chore: update versions (#8069) 2024-04-25 23:08:27 +00:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00: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;