gradio/js/code
Yuichiro Tachibana (Tsuchiya) 1d09925469
Fix Lite's <Playground /> (#8804)
* Fix Playground.svelte to use BaseCode instead of Code

* Remove unnecessary <div>s

* Fix typing error_display

* Make <Code>'s readonly prop reactive and fix <Playground /> to use it

* Fix to attach the event listener to a specific DOM element in the <Playground \> component

* Remove unused line

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 10:18:09 +09:00
..
shared Fix Lite's <Playground /> (#8804) 2024-07-17 10:18:09 +09:00
CHANGELOG.md chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
Example.svelte
Index.svelte Add max_file_size parameter to launch() that limits the size of files that can be uploaded in the Gradio app (#7909) 2024-04-19 15:38:53 -04:00
package.json chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
README.md Small cleanups of Code component (#7240) 2024-01-31 14:47:18 -08:00

@gradio/code

<script>
    import { BaseCode, BaseCopy, BaseDownload, BaseWidget, BaseExample} from "gradio/code";
</script>

BaseCode

	export let class_names = "";
	export let value = "";
	export let dark_mode: boolean;
	export let basic = true;
	export let language: string;
	export let lines = 5;
	export let extensions: Extension[] = [];
	export let use_tab = true;
	export let readonly = false;
	export let placeholder: string | HTMLElement | null | undefined = undefined;

BaseCopy

	export let value: string;

BaseDownload

	export let value: string;
	export let language: string;

BaseWidget

	export let value: string;
	export let language: string;

BaseExample

	export let value: string;
	export let type: "gallery" | "table";
	export let selected = false;