mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
more clear instructions
This commit is contained in:
1 parent
30b4ce2c0e
commit
b5b84efb52
1 file changed
+5
-1
@@ -23,6 +23,10 @@ export const ContextualToolbarForm = () => {
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
<label className="font-bold">Image Toolbar Props</label>
|
||||
<p className="-mt-2 pb-1">
|
||||
toolbar setup is assumed, in real implementation you may want to start
|
||||
with the setup function instead
|
||||
</p>
|
||||
<div className="flex items-center gap-2">
|
||||
<label>X:</label>
|
||||
<Input
|
||||
@@ -102,7 +106,7 @@ export const ContextualToolbarForm = () => {
|
||||
disabled={buttonCallbacks[button.name] !== undefined}
|
||||
onClick={() =>
|
||||
imageToolbar.changeButtonCallback(button.name, () => {
|
||||
console.log("clicked");
|
||||
console.log(`${button.name} clicked`);
|
||||
})
|
||||
}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user