reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
SqlWorkspace
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

SqlWorkspace

Block

Compose a SQL editing screen from SqlEditor and QueryResultsTable.

editor
Related docs
npx @reopt-ai/opt-cli block add sql-workspace
Install and import
bash
npx @reopt-ai/opt-cli block add sql-workspace
tsx
import { SqlWorkspace } from "@/components/surfaces/sql-workspace";

Live preview

Change the width and theme, then interact with the components.

100%

기본 사용

저장 쿼리를 선택하면 해당 SQL이 에디터에 즉시 로드됩니다.

SQL Workspace

Saved Queries

Ctrl+Enter to run

No results

SqlWorkspace

PropTypeDefaultDescription
initialQuerystring""초기 SQL 쿼리
onRun(sql: string) => Promise<{ columns: string[]; rows: Record<string, unknown>[] }>—쿼리 실행 핸들러
classNamestring—최외곽 CSS 클래스

컴포넌트 의존 관계

깊이
▼ USES (3)SqlWorkspacesql-editorquery-results-tableloading-overlay
View test results

테스트 커버리지

2026년 7월 9일

생성된 테스트 결과를 찾지 못했습니다.

SqlWorkspace 항목이 문서 메타에 연결되어 있지만 현재 생성 파일에는 없습니다.

테스트를 추가한 뒤 `bun run generate:test-results`를 실행하거나 `testDescribe` 매핑을 다시 확인하세요.

Related components

opt-ui

SqlEditor

Shells

Edit SQL with CodeMirror syntax highlighting and autocomplete.

opt-ui

LoadingOverlay

Core

Overlay a loading state with one aria-busy live region and no duplicate status announcements.

opt-ui

EditorToolbar

Shells

Build a rich-text editing toolbar from Toolbar and Tooltip components.

opt-ui

CodeSnippetViewer

Shells

Read and copy code snippets with line numbers, a focusable scroll region, and syntaxTheme styling.

opt-ui

QueryResultsTable

Shells

Explore windowed query results with typed headers, local sorting, resizable columns, row details, and explicit null, boolean, and object values.

opt-ui

RichTextEditor

Shells

Edit Markdown with a formatting toolbar and textarea.

PreviousPropertyCatalogNextAlertManager