gradio/js/code
Gradio PR Bot b635a31714
chore: update versions (#9168)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-06 09:10:25 +08:00
..
shared Add copy all messages button to chatbot (#9013) 2024-08-12 14:08:12 +00:00
CHANGELOG.md chore: update versions (#9168) 2024-09-06 09:10:25 +08:00
Example.svelte
Index.svelte make all component SSR compatible (#9187) 2024-08-31 06:19:51 +00:00
package.json chore: update versions (#9168) 2024-09-06 09:10:25 +08:00
README.md

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