@gradio/highlightedtext

0.8.7 • Public • Published

@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;

Readme

Keywords

none

Package Sidebar

Install

npm i @gradio/highlightedtext

Weekly Downloads

61

Version

0.8.7

License

ISC

Unpacked Size

93 kB

Total Files

21

Last publish

Collaborators

  • evilpingwin