gradio/js/highlightedtext
pngwn 2382f741ff
chore: update versions (#7177)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 15:19:29 -08:00
..
shared Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
CHANGELOG.md chore: update versions (#7177) 2024-02-06 15:19:29 -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 (#7177) 2024-02-06 15:19:29 -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;