gradio/js/highlightedtext
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 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 (#9168) 2024-09-06 09:10:25 +08: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 Fix published package exports (#9163) 2024-08-22 16:38:45 +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 (#9168) 2024-09-06 09:10:25 +08: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;