gradio/js/highlightedtext
pngwn 138761226a
chore: update versions (#7083)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-25 16:10:24 -08:00
..
shared Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
CHANGELOG.md chore: update versions (#7083) 2024-01-25 16:10:24 -08:00
HighlightedText.stories.svelte format (#6658) 2023-12-04 14:37:04 -08:00
highlightedtext.test.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#7083) 2024-01-25 16:10:24 -08:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +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 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;