more clear instructions

This commit is contained in:
wil committed 2024-09-05 22:28:52 -04:00
1 parent 30b4ce2c0e
commit b5b84efb52
1 file changed
+5 -1
+5 -1
View File
@@ -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`);
})
}
>