gradio/js/highlightedtext
pngwn e16b4abc37
chore: update versions (#6039)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-31 13:20:18 +00:00
..
shared Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
CHANGELOG.md chore: update versions (#6039) 2023-10-31 13:20:18 +00:00
HighlightedText.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00: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 (#6039) 2023-10-31 13:20:18 +00: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;