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

BranchSelect

Shell

Choose a Git branch with a wrapper around the Select primitive.

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

Live preview

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

100%

기본 사용

선택된 브랜치: main

BranchSelect

PropTypeDefaultDescription
branchesRequiredBranchDef[]—브랜치 목록. { name, isDefault?, lastCommit?, author? }
valuestring—제어 모드: 현재 선택된 브랜치 이름
onChange(name: string) => void—브랜치 선택 핸들러
labelstring"브랜치"Select 레이블

컴포넌트 의존 관계

깊이
▲ USED BY (1)▼ USES (1)deployment-centerBranchSelectselect
View test results

테스트 커버리지

2026년 7월 9일6/6 통과
6성공
0실패
6전체
  • combobox role을 렌더링한다
  • 기본 브랜치가 초기 선택된다
  • default 뱃지를 표시한다
  • 커스텀 레이블을 표시한다
  • controlled value를 사용할 수 있다
  • onChange 콜백을 호출한다

Blocks that use this component

opt-ui

DeploymentCenter

Blocks

Manage deployments with branch and status selectors, quick actions, timelines, domains, and environment variables.

Related components

opt-ui

FaqAccordion

Shells

Organize FAQ questions and answers with Composite and Disclosure components.

opt-ui

EnvPanel

Shells

Browse environment variables with collapsible environment groups and Composite navigation.

opt-ui

DesignGuidePanel

Shells

Consult six design-system reference sections covering primitives, keyboard patterns, Tailwind selectors, and accessibility attributes.

opt-ui

QuickActions

Shells

Present frequent actions in a grid or list with keyboard shortcut labels.

opt-ui

TeamMemberList

Shells

Show team members and online status in list, compact, or avatar-only layouts.

opt-ui

EventIcon

Shells

Display an event icon from a semantic key or React node with a background color.

PreviousEnvPanelNextDomainTable