anki/ts/editor-toolbar/IconButton.svelte
2021-04-15 13:09:49 +02:00

16 lines
409 B
Svelte

<script lang="typescript">
import SquareButton from "./SquareButton.svelte";
export let id = "";
export let className = "";
export let props: Record<string, string> = {};
export let title: string;
export let icon = "";
export let onClick: (event: ClickEvent) => void;
</script>
<SquareButton {id} {className} {props} {title} {onClick} on:mount>
{@html icon}
</SquareButton>