mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 17:07:08 +00:00
17 lines
367 B
Svelte
17 lines
367 B
Svelte
<script lang="ts">
|
|
import { GripHorizontal } from 'lucide-svelte';
|
|
import { dragHandle } from 'svelte-dnd-action';
|
|
|
|
let { bg, className = "" }: {
|
|
bg: string;
|
|
className?: string;
|
|
} = $props();
|
|
</script>
|
|
|
|
<div
|
|
use:dragHandle
|
|
class="{className} bg-transparent hover:{bg} active:{bg} p-2 rounded-xl duration-200 transition-colors"
|
|
>
|
|
<GripHorizontal />
|
|
</div>
|