SqlWorkspace
BlocksCompose a SQL editing screen from SqlEditor and QueryResultsTable.
Edit SQL with CodeMirror syntax highlighting and autocomplete.
bun add @reopt-ai/opt-uiimport { SqlEditor } from "@reopt-ai/opt-ui/sql-editor";Change the width and theme, then interact with the components.
Compose a SQL editing screen from SqlEditor and QueryResultsTable.
Build a rich-text editing toolbar from Toolbar and Tooltip components.
Read and copy code snippets with line numbers, a focusable scroll region, and syntaxTheme styling.
Edit Markdown with a formatting toolbar and textarea.
Compare code in unified or split views using an LCS diff and focusable scroll regions.
Use accessible buttons with primary, secondary, ghost, and danger variants, three sizes, icons, loading, and aria-busy states.
Organize FAQ questions and answers with Composite and Disclosure components.