flotilla/src/lib/components/CardButton.svelte

20 lines
587 B
Svelte
Raw Normal View History

2024-08-08 21:02:46 +00:00
<script lang="ts">
2024-08-16 17:50:38 +00:00
import cx from "classnames"
2024-08-08 21:02:46 +00:00
import Icon from "@lib/components/Icon.svelte"
2024-08-09 23:22:09 +00:00
import Button from "@lib/components/Button.svelte"
2024-08-08 21:02:46 +00:00
export let icon
export let title
</script>
2024-08-16 17:50:38 +00:00
<Button on:click class={cx($$props.class, "btn btn-neutral btn-lg h-24 text-left")}>
<div class="flex flex-grow items-center gap-6 py-4">
2024-08-08 21:02:46 +00:00
<Icon class="bg-accent" size={7} {icon} />
2024-08-16 17:50:38 +00:00
<div class="flex flex-grow flex-col gap-1">
2024-08-14 23:25:36 +00:00
<p class="text-bold">{title}</p>
2024-08-08 21:02:46 +00:00
<p class="text-xs"><slot /></p>
</div>
<Icon size={7} icon="alt-arrow-right" />
</div>
2024-08-09 23:22:09 +00:00
</Button>