reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
brandapp-ui8
Reopt User 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.

User Menubrandapp-ui example

Reopt User Menu

A local user-menu simulation with loading, signed-out, sign-in, and sign-out transitions. The copied ReoptUserMenu Surface derives these states from the real session.

authsessiondropdownavatar
opt block add reopt-user-menu

APIs used

AvatarDropdownMenuDropdownItemSkeletonAvatar

Live preview

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

1024px
상태
Preview

로딩

authClient.useSession()의 isPending 단계. SkeletonAvatar로 placeholder 표시.

비로그인

session === null에 해당하는 상태. 로그인 버튼은 로컬 데모 상태를 로그인으로 바꿉니다.

로그인

Avatar + Dropdown. 메뉴 내 user.name / user.email 표시 + destructive 로그아웃.

실제 Surface는 authClient.useSession() 반환값으로 상태를 자동 판단합니다. 이 데모는 상태를 수동 토글로 시연합니다.

Install and import

Related docs

Install

opt block add reopt-user-menu

Import

import { ReoptUserMenu } from "@/components/surfaces/reopt-user-menu";

Related Examples

brandapp-ui

Session Expired Dialog

Examples

A local re-auth dialog simulation with manual expiry, optional dismissal, and a simulated sign-in action. Automatic session/401 detection belongs to the copied Surface.

brandapp-ui

Sign In Gate

Examples

A local simulation of a protected-content gate with loading, signed-out, and signed-in states. Its sign-in CTA changes only the preview state.

brandapp-ui

BrandApp Control Center

Examples

SDK control center showing server-side verifier checks, auth health, secret rotation, EAV schema remediation, AI credit guardrails, webhook replay, terms publication, and lazy server-client boundaries.

PreviousSign In With Reopt ButtonNextSign In Gate