gradio/js/highlightedtext
Hannah 0879be78b3
Ensure show_label param is used in HighlightedText (#10004)
* use show_label param

* add changeset

* add changeset

* * remove empty label spacing
* increase empty area

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-20 23:34:40 +00:00
..
shared
CHANGELOG.md chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
HighlightedText.stories.svelte
highlightedtext.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
Index.svelte Ensure show_label param is used in HighlightedText (#10004) 2024-11-20 23:34:40 +00:00
package.json chore: update versions (#9908) 2024-11-15 16:16:39 -08:00
README.md

@gradio/highlightedtext

<script>
    import { BaseStaticHighlightedText, BaseInteractiveHighlightedText } from `@gradio/highlightedtext`;
</script>

BaseStaticHighlightedText

	export let value: {
		token: string;
		class_or_confidence: string | number | null;
	}[] = [];
	export let show_legend = false;
	export let show_inline_category = true;
	export let color_map: Record<string, string> = {};
	export let selectable = false;

BaseInteractiveHighlightedText

	export let value: {
		token: string;
		class_or_confidence: string | number | null;
	}[] = [];
	export let show_legend = false;
	export let color_map: Record<string, string> = {};
	export let selectable = false;