mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
19 lines
573 B
Svelte
19 lines
573 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="typescript">
|
|
import type { ToolbarItem } from "./types";
|
|
import ButtonGroup from "./ButtonGroup.svelte";
|
|
|
|
export let id: string;
|
|
export let className = "";
|
|
|
|
function extendClassName(className: string): string {
|
|
return `dropdown-menu bg-transparent border-0 ${className}`;
|
|
}
|
|
|
|
export let buttons: ToolbarItem[];
|
|
</script>
|
|
|
|
<ButtonGroup {id} className={extendClassName(className)} {buttons} />
|