File size: 519 Bytes
c6afb12
236e9a2
 
c6afb12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236e9a2
 
 
 
 
 
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
<script lang="ts">
	import OverflowCursorTooltip from '$lib/components/tooltips/OverflowCursorTooltip.svelte';
	import { cn } from '$lib/utils';

	type Props = {
		text: string;
		class?: string;
		triggerClass?: string;
		contentClass?: string;
	};

	let {
		text,
		class: className = '',
		triggerClass = 'block min-w-0',
		contentClass = 'max-w-sm break-all'
	}: Props = $props();
</script>

<OverflowCursorTooltip
	{text}
	labelClass={cn(triggerClass, className)}
	tooltipClass={contentClass}
	position="label"
/>