2021-03-29 14:54:10 +02:00
|
|
|
<script lang="typescript">
|
2021-03-30 18:57:50 +02:00
|
|
|
import SquareButton from "./SquareButton.svelte";
|
2021-03-29 14:54:10 +02:00
|
|
|
|
2021-03-30 18:57:50 +02:00
|
|
|
export let id = "";
|
2021-03-29 21:05:30 +02:00
|
|
|
export let className = "";
|
2021-03-30 18:57:50 +02:00
|
|
|
export let props: Record<string, string> = {};
|
2021-04-01 01:22:06 +02:00
|
|
|
export let title: string;
|
2021-03-30 18:57:50 +02:00
|
|
|
|
2021-03-29 21:05:30 +02:00
|
|
|
export let icon = "";
|
2021-03-29 17:32:43 +02:00
|
|
|
export let onClick: (event: ClickEvent) => void;
|
2021-03-29 14:54:10 +02:00
|
|
|
</script>
|
|
|
|
|
2021-04-01 01:22:06 +02:00
|
|
|
<SquareButton {id} {className} {props} {title} {onClick} on:mount>
|
2021-03-30 00:51:44 +02:00
|
|
|
{@html icon}
|
2021-03-30 18:57:50 +02:00
|
|
|
</SquareButton>
|