gradio/js/highlightedtext
Gradio PR Bot b400706fb6
chore: update versions (#9970)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-27 18:10:49 -05: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 (#9970) 2024-11-27 18:10:49 -05: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 Ensure show_label param is used in HighlightedText (#10004) 2024-11-20 23:34:40 +00:00
package.json chore: update versions (#9970) 2024-11-27 18:10:49 -05: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;