mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
24 lines
486 B
Svelte
24 lines
486 B
Svelte
<script lang="typescript">
|
|
import ButtonItem from "./ButtonItem.svelte";
|
|
|
|
export let className: string;
|
|
export let icon: string;
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
span {
|
|
display: inline-block;
|
|
width: 28px;
|
|
height: 28px;
|
|
vertical-align: -webkit-baseline-middle;
|
|
|
|
& > :global(svg) {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<ButtonItem>
|
|
<span class={className}>{@html icon}</span>
|
|
</ButtonItem>
|