Files
windmill/frontend/src/lib/components/flows/map/InsertModuleButton.svelte
Guilhem 79a0d3edc9 add tip to triggers pannel (#7220)
* improve triggers pannel

* nit

* nit

* improve placement and transition

* Add tip

* stop input selection when adding a preprocessor
2025-11-25 15:56:24 +00:00

23 lines
611 B
Svelte

<script lang="ts">
import type { IconType } from '$lib/utils'
import { Plus } from 'lucide-svelte'
type Props = {
Icon?: IconType
title?: string
id?: string
}
let { Icon = Plus, title, id }: Props = $props()
</script>
<button class="center-center p-2 group" onclick={(e) => e.stopPropagation()}>
<div
{title}
{id}
class={'w-[20px] h-[20px] flex items-center justify-center text-primary border border-border-normal bg-surface-secondary group-hover:bg-surface-accent-primary group-hover:text-white group-hover:border-none transition-all rounded-md'}
>
<Icon size={12} />
</div>
</button>