Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Apr 11, 2024
1 parent 4a2a693 commit e9c341d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions sites/docs/src/lib/components/demos/toolbar-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@
let text: string[] | undefined = ["bold"];
let align: string | undefined;
function onValueChange(v: any) {
console.log("value changed");
}
</script>

<Toolbar.Root
class="flex h-12 min-w-max items-center justify-center rounded-10px border border-border bg-background-alt px-[4px] py-1 shadow-mini"
>
<Toolbar.Group
bind:value={text}
{onValueChange}
type="multiple"
class="flex items-center gap-x-0.5"
>
<Toolbar.Group bind:value={text} type="multiple" class="flex items-center gap-x-0.5">
<Toolbar.GroupItem
aria-label="toggle bold"
value="bold"
Expand Down

0 comments on commit e9c341d

Please sign in to comment.