mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
15 lines
496 B
Svelte
15 lines
496 B
Svelte
<script lang="typescript">
|
|
import type { DynamicSvelteComponent } from "sveltelib/dynamicComponent";
|
|
import ButtonGroup from "./ButtonGroup.svelte";
|
|
|
|
export let id = "";
|
|
export let className = "";
|
|
|
|
function extendClassName(className: string): string {
|
|
return `dropdown-menu bg-transparent border-0 ${className}`;
|
|
}
|
|
|
|
export let buttons: DynamicSvelteComponent[];
|
|
</script>
|
|
|
|
<ButtonGroup {id} className={extendClassName(className)} {buttons} {...$$restProps} />
|