2021-04-01 16:29:24 +02:00
|
|
|
<script lang="typescript">
|
2021-04-09 18:59:57 +02:00
|
|
|
import type { ToolbarItem } from "./types";
|
2021-04-01 16:29:24 +02:00
|
|
|
import ButtonGroup from "./ButtonGroup.svelte";
|
|
|
|
|
2021-04-09 22:02:34 +02:00
|
|
|
export let id: string;
|
2021-04-01 16:29:24 +02:00
|
|
|
export let className = "";
|
|
|
|
|
|
|
|
function extendClassName(className: string): string {
|
|
|
|
return `dropdown-menu bg-transparent border-0 ${className}`;
|
|
|
|
}
|
|
|
|
|
2021-04-09 18:59:57 +02:00
|
|
|
export let buttons: ToolbarItem[];
|
2021-04-01 16:29:24 +02:00
|
|
|
</script>
|
|
|
|
|
2021-04-09 22:02:34 +02:00
|
|
|
<ButtonGroup {id} className={extendClassName(className)} {buttons} />
|