gradio/js/statustracker
Freddy Boulton c2a0d056d6
Control Display of Error, Info, Warning (#8489)
* first draft

* handle animation

* No animation

* Add code

* add changeset

* Only use duration

* lint

* lint

* Add docs

* add changeset

* Fix default

* sample usage

* formatting

* Add visible parameters

* float

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-06-11 23:27:59 +00:00
..
static Control Display of Error, Info, Warning (#8489) 2024-06-11 23:27:59 +00:00
CHANGELOG.md chore: update versions (#8348) 2024-05-30 00:00:00 +01:00
index.ts
package.json chore: update versions (#8348) 2024-05-30 00:00:00 +01:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/statustracker

<script>
    import {StatusTracker, Toast, Loader} from `@gradio/statustracker`;
</script>

StatusTracker

	export let i18n: I18nFormatter;
	export let eta: number | null = null;
	export let queue = false;
	export let queue_position: number | null;
	export let queue_size: number | null;
	export let status: "complete" | "pending" | "error" | "generating";
	export let scroll_to_output = false;
	export let timer = true;
	export let show_progress: "full" | "minimal" | "hidden" = "full";
	export let message: string | null = null;
	export let progress: LoadingStatus["progress"] | null | undefined = null;
	export let variant: "default" | "center" = "default";
	export let loading_text = "Loading...";
	export let absolute = true;
	export let translucent = false;
	export let border = false;
	export let autoscroll: boolean;

Toast

	export let messages: ToastMessage[] = [];

Loader

	export let margin = true;