Reusable, configurable canvas editor with multiple instances
Complete canvas editor with all tools, theme support, and save functionality. Changes: 0
Display-only mode with predefined content, no toolbar
Dark mode editor with pen and highlighter tools disabled
Smaller instance with grid overlay
Independent state, can exist alongside others
import CanvasStudio from '@/components/CanvasStudio';
// Full-featured editor
<CanvasStudio
className="h-[600px]"
theme="light"
onChange={(data) => console.log('Changed:', data)}
onSave={(data) => console.log('Saved:', data)}
/>
// Read-only viewer
<CanvasStudio
className="h-[400px]"
readOnly
initialData={savedCanvasData}
components={{ toolbar: false }}
/>
// Custom configuration
<CanvasStudio
theme="dark"
disabledTools={['pen', 'highlight']}
components={{ propertiesPanel: false }}
pageOptions={{ showGrid: true }}
/>