@melt-ui/svelte
Advanced tools
Changelog
0.20.0
Changelog
0.19.1
Changelog
0.19.0
Changelog
0.18.4
Changelog
0.18.3
Changelog
0.18.2
Changelog
0.18.1
Changelog
0.18.0
Changelog
0.17.0
Changelog
0.16.0
d031b34: fix/refactor [toolbar]
createToolbarGroup
is no longer a separate import, it is returned from the createToolbar
builder function. This is not only a cleaner approach, but also enables us to scope the context of the groups to a given toolbar.
<script lang="ts">
import {
createToolbar,
- createToolbarGroup
} from '@melt-ui/svelte';
import { Bold, Italic, Strikethrough, AlignLeft, AlignCenter, AlignRight } from 'icons';
const { root, options, button, link, separator } = createToolbar();
const { root: fontGroup, item: fontItem } = createToolbarGroup({
- toolbarOptions: options,
type: 'multiple',
});
const { root: alignGroup, item: alignItem } = createToolbarGroup(
- { toolbarOptions: options }
);
</script>
b7c9930: feat: Context Menu
d01a759: Select improvements: