gradio/js/highlightedtext
pngwn 1b74e214b9
chore: update versions (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 11:54:28 -07:00
..
shared Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00
CHANGELOG.md chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
HighlightedText.stories.svelte Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00
highlightedtext.test.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00
package.json chore: update versions (#8663) 2024-07-12 11:54:28 -07:00
README.md Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355) 2024-05-23 09:17:41 +00:00

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