gradio/js/chatbot
Hannah 9b8840ab5f
Ensure chatbot messages are visible to screenreaders (#8631)
* fix aria label for message.type

* add changeset

* tweak

* improve aria-label for files

* copy tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:03:44 -04:00
..
shared Ensure chatbot messages are visible to screenreaders (#8631) 2024-06-28 12:03:44 -04:00
CHANGELOG.md
Chatbot.stories.svelte
Chatbot.test.ts
Index.svelte
package.json
README.md

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