anki/ts/editor-toolbar/IconButton.svelte

15 lines
358 B
Svelte
Raw Normal View History

2021-03-29 14:54:10 +02:00
<script lang="typescript">
import ButtonItem from "./ButtonItem.svelte";
import InnerButton from "./InnerButton.svelte";
2021-03-29 14:54:10 +02:00
2021-03-29 21:05:30 +02:00
export let className = "";
export let icon = "";
export let onClick: (event: ClickEvent) => void;
2021-03-29 14:54:10 +02:00
</script>
<ButtonItem>
<InnerButton {className} {onClick}>
2021-03-29 21:05:30 +02:00
{@html icon}
</InnerButton>
2021-03-29 14:54:10 +02:00
</ButtonItem>