18 lines
354 B
Svelte
18 lines
354 B
Svelte
<script lang="ts">
|
|
import { createEventDispatcher } from 'svelte'
|
|
|
|
type T = $$Generic
|
|
|
|
const dispatcher = createEventDispatcher<{ action: any }>()
|
|
|
|
function action(detail: any) {
|
|
dispatcher('action', detail)
|
|
}
|
|
</script>
|
|
|
|
<ul
|
|
class="divide-y divide-slate-200 dark:divide-zinc-900 flex flex-col {$$props.class}"
|
|
>
|
|
<slot {action} />
|
|
</ul>
|