1eafa7d9d0
* Currently LabelButton, CommandIconButtton, and IconButton support dropdowns
16 lines
441 B
Svelte
16 lines
441 B
Svelte
<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} />
|