reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
EditorToolbar
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.

EditorToolbar

Shell

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

editor
Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { EditorToolbar } from "@reopt-ai/opt-ui";

Live preview

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

100%

기본 사용



활성: bold

EditorToolbar

PropTypeDefaultDescription
buttonsRequiredToolbarButtonDef[]—버튼 정의. { id, label, icon, separator? }
onAction(id: string) => void—버튼 클릭 핸들러
activeButtonsstring[][]활성 상태 버튼 ID 배열

컴포넌트 의존 관계

깊이
▼ USES (1)EditorToolbartoolbar
View test results

테스트 커버리지

2026년 7월 9일2/2 통과
2성공
0실패
2전체
  • toolbar role을 렌더링한다
  • onAction 콜백을 호출한다

Related components

opt-ui

CodeSnippetViewer

Shells

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

opt-ui

SqlEditor

Shells

Edit SQL with CodeMirror syntax highlighting and autocomplete.

opt-ui

RichTextEditor

Shells

Edit Markdown with a formatting toolbar and textarea.

opt-ui

CodeDiffViewer

Shells

Compare code in unified or split views using an LCS diff and focusable scroll regions.

opt-ui

Toolbar

Core

Group actions in a toolbar with buttons, separators, and tooltips.

opt-ui

FaqAccordion

Shells

Organize FAQ questions and answers with Composite and Disclosure components.

PreviousStatusSelectNextSidebarNav