gradio/js/chatbot
Hannah 4d1cbbcf30
Allow passing height and width as string in Blocks.svelte (#6569)
* Allow % string in blocks
Modify docstring in chatbot

* add % height chatbot story

* add changeset

* typo 🥲

* func tweak

* formatting

* add changeset

* add changeset

* add str to height params

* update docstring for height

* Allow passing width as a string
Update width docstrings

* formatting

* add changeset

* add width/height param description

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 15:58:04 +01:00
..
shared Improve CSS token documentation in Storybook (#6399) 2023-12-08 16:23:14 +01:00
CHANGELOG.md chore: update versions (#6575) 2023-12-04 16:14:12 -08:00
Chatbot.stories.svelte Allow passing height and width as string in Blocks.svelte (#6569) 2023-12-11 15:58:04 +01:00
Chatbot.test.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#6575) 2023-12-04 16:14:12 -08:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/button

<script>
	import { BaseChatBot } from "@gradio/chatbot";
</script>

BaseChatBot

	export let value:
		| [
				string | { file: FileData; alt_text: string | null } | null,
				string | { file: FileData; alt_text: string | null } | null
		  ][]
		| null;
	let old_value:
		| [
				string | { file: FileData; alt_text: string | null } | null,
				string | { file: FileData; alt_text: string | null } | null
		  ][]
		| null = null;
	export let latex_delimiters: {
		left: string;
		right: string;
		display: boolean;
	}[];
	export let pending_message = false;
	export let selectable = false;
	export let likeable = false;
	export let show_share_button = false;
	export let rtl = false;
	export let show_copy_button = false;
	export let avatar_images: [string | null, string | null] = [null, null];
	export let sanitize_html = true;
	export let bubble_full_width = true;
	export let render_markdown = true;
	export let line_breaks = true;
	export let root: string;
	export let root_url: null | string;
	export let i18n: I18nFormatter;
	export let layout: "bubble" | "panel" = "bubble";