gradio/js/code
pngwn bacbc70fa1
chore: update versions (#7463)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 13:29:11 -08:00
..
shared Add SQL Support for gr.Code (#7328) 2024-02-09 12:28:12 +00:00
CHANGELOG.md chore: update versions (#7463) 2024-02-22 13:29:11 -08:00
Example.svelte Handle the case where examples is null for all components (#7192) 2024-01-29 16:51:22 -08:00
Index.svelte Textbox and Code Component Blur/Focus Fixes (#6323) 2023-11-09 19:20:54 -05:00
package.json chore: update versions (#7463) 2024-02-22 13:29:11 -08: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;