@datamonsterr/vdt-dashboard
Version:
26 lines • 1.01 kB
TypeScript
import type { SchemaCanvasProps } from '../types';
/**
* SchemaCanvas - An embeddable database schema builder component
*
* This component provides a full-featured database schema designer that can be
* embedded in any React application. It includes:
* - Interactive table creation and editing
* - Drag and drop table positioning
* - Foreign key relationship creation
* - Canvas panning with hand tool
* - Undo/redo functionality
* - Light/dark theme toggle (isolated to the canvas)
*
* @example
* ```tsx
* <SchemaCanvas
* onSchemaChange={(data) => console.log('Schema changed:', data)}
* showToolbar={true}
* showUndoRedo={true}
* showThemeToggle={true}
* initialTheme="dark"
* />
* ```
*/
export declare function SchemaCanvas({ initialTables, initialForeignKeys, onSchemaChange, onExport, onSave, isSaving, showToolbar, showUndoRedo, className, style, }: Omit<SchemaCanvasProps, 'initialTheme'>): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=SchemaCanvas.d.ts.map