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

Menu

Component

Compose menu bars and individual menus with checkbox items, radio items, separators, and popovers.

navoverlay
Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { MenubarRoot, MenubarContainer, MenuRoot, MenuTrigger, MenuButtonArrow, MenuPopover, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuSeparator } from "@reopt-ai/opt-ui";

Live preview

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

100%

기본 사용

단일 메뉴

MenubarRoot

PropTypeDefaultDescription

MenubarContainer

PropTypeDefaultDescription
childrenRequiredReactNode—MenuRoot 요소들
classNamestring—기본 스타일 오버라이드

MenuRoot

PropTypeDefaultDescription

MenuTrigger

PropTypeDefaultDescription
childrenRequiredReactNode—메뉴 버튼 레이블
classNamestring—기본 스타일 오버라이드

MenuButtonArrow

PropTypeDefaultDescription
classNamestring—화살표 CSS 클래스

MenuPopover

PropTypeDefaultDescription
childrenRequiredReactNode—MenuItem 목록
gutternumber8트리거와의 간격 (px)
classNamestring—기본 스타일 오버라이드

MenuItem

PropTypeDefaultDescription
childrenRequiredReactNode—메뉴 항목 내용
onClick() => void—클릭 핸들러
classNamestring—기본 스타일 오버라이드

MenuItemCheckbox

PropTypeDefaultDescription
nameRequiredstring—체크박스 이름
valueRequiredstring—체크박스 값
checkedboolean—체크 상태
onChange(e: ChangeEvent) => void—변경 핸들러
childrenRequiredReactNode—항목 내용
classNamestring—기본 스타일 오버라이드

MenuItemRadio

PropTypeDefaultDescription
nameRequiredstring—라디오 그룹 이름
valueRequiredstring—라디오 값
checkedboolean—선택 상태
onChange(e: ChangeEvent) => void—변경 핸들러
childrenRequiredReactNode—항목 내용
classNamestring—기본 스타일 오버라이드

MenuSeparator

PropTypeDefaultDescription
classNamestring—기본 스타일 오버라이드

컴포넌트 의존 관계

깊이
▲ USED BY (1)app-menubarMenu
View test results

테스트 커버리지

2026년 7월 9일1/1 통과
1성공
0실패
1전체
  • 메뉴 트리거, 항목, 체크박스, 라디오, 구분선을 렌더링한다

키보드 동작

키동작
← →메뉴 간 탐색
↑ ↓메뉴 항목 탐색
Enter / Space항목 선택/토글
Esc메뉴 닫기

Related components

opt-ui

DropdownMenu

Core

Create a single-trigger dropdown with a convenient wrapper around Menu Core.

opt-ui

KeyPadMenu

Core

Choose visual options from tiles backed by native radio buttons and checkboxes for keyboard and screen reader access.

opt-ui

Tabs

Core

Organize tab panels with Root, TabList, Tab, and TabPanel components.

opt-ui

Breadcrumb

Core

Show the current location and provide navigation through its hierarchy.

opt-ui

AppMenubar

Shells

Use a desktop-style menu bar with checkbox and radio menu items.

opt-ui

Disclosure

Core

Expand and collapse content with Root, Trigger, and Content components.

PreviousComboboxNextToolbar