Home / Type/ MonacoEditorProps Type — supabase Architecture

MonacoEditorProps Type — supabase Architecture

Architecture documentation for the MonacoEditorProps type/interface in MonacoEditor.tsx from the supabase codebase.

Entity Profile

Source Code

apps/studio/components/interfaces/SQLEditor/MonacoEditor.tsx lines 20–38

export type MonacoEditorProps = {
  id: string
  snippetName: string
  className?: string
  editorRef: MutableRefObject<IStandaloneCodeEditor | null>
  monacoRef: MutableRefObject<Monaco | null>
  autoFocus?: boolean
  executeQuery: () => void
  onHasSelection: (value: boolean) => void
  onMount?: (editor: IStandaloneCodeEditor) => void
  onPrompt?: (value: {
    selection: string
    beforeSelection: string
    afterSelection: string
    startLineNumber: number
    endLineNumber: number
  }) => void
  placeholder?: string
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free