BarStack Tool Tip Issues
I'm using Svelte-ux 1.0.6 and have run into some issues with using the BarStack tooltip. In particular the tooltip is not showing up.
Here's an example of using a Tooltip with the BarStack, but it doesn't render anything. (If I remove the Tooltip option, it renders minus the tooltip.)
```
<script lang="ts">
import { BarStack, Tooltip } from 'svelte-ux';
const findings = [
{
id: 0,
label: 'None',
value: 1,
color: 'hsl(140 100% 35.3%)'
},
{
id: 1,
label: 'Very Low',
value: 1,
color: 'hsl(45 100% 50%)'
}
];
</script>
<BarStack data={findings} class="w-64" let:item let:total>
<Tooltip title="test" placement="bottom-start" offset={2}>
<div onclick={() => {}} class="flex items-center gap-2 truncate py-1 px-2 text-gray-900"></div>
</Tooltip>
</BarStack>
```
关闭于 2025-09-17 1 条评论