CodeSnippetViewer
ShellsRead and copy code snippets with line numbers, a focusable scroll region, and syntaxTheme styling.
Build a rich-text editing toolbar from Toolbar and Tooltip components.
bun add @reopt-ai/opt-uiimport { EditorToolbar } from "@reopt-ai/opt-ui";Change the width and theme, then interact with the components.
활성: bold
Read and copy code snippets with line numbers, a focusable scroll region, and syntaxTheme styling.
Edit SQL with CodeMirror syntax highlighting and autocomplete.
Edit Markdown with a formatting toolbar and textarea.
Compare code in unified or split views using an LCS diff and focusable scroll regions.
Group actions in a toolbar with buttons, separators, and tooltips.
Organize FAQ questions and answers with Composite and Disclosure components.