File size: 759 Bytes
0bd62e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# `@gradio/highlightedtext`

```html

<script>

    import { BaseStaticHighlightedText, BaseInteractiveHighlightedText } from `@gradio/highlightedtext`;

</script>

```


BaseStaticHighlightedText
```javascript

	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
```javascript

	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;

```