mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 10:57:04 +00:00
Migrate more stuff
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
<div class="relative z-feature mx-2 rounded-xl pt-4 {$$props.class}">
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
icon?: import("svelte").Snippet
|
||||
title?: import("svelte").Snippet
|
||||
action?: import("svelte").Snippet
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
let {...props}: Props = $props()
|
||||
</script>
|
||||
|
||||
<div class="relative z-feature mx-2 rounded-xl pt-4 {props.class}">
|
||||
<div
|
||||
class="flex min-h-12 items-center justify-between gap-4 rounded-xl bg-base-100 px-4 shadow-xl">
|
||||
<div class="flex items-center gap-4">
|
||||
<slot name="icon" />
|
||||
<slot name="title" />
|
||||
{@render props.icon?.()}
|
||||
{@render props.title?.()}
|
||||
</div>
|
||||
<slot name="action" />
|
||||
{@render props.action?.()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user