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";
|
|
|
|
|
|
|
|
export let id = "";
|
|
|
|
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-08 18:57:20 +02:00
|
|
|
<ButtonGroup {id} className={extendClassName(className)} {buttons} {...$$restProps} />
|