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

InlineEdit

Component

Edit titles and metric names in place. Enter confirms, Escape reverts, and rejected saves preserve the input.

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

Live preview

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

100%

대시보드 제목

공유됨

저장 거절 (예약어)

"count"는 예약어라 거절되고 편집 상태가 유지됩니다.

InlineEdit

PropTypeDefaultDescription
valueRequiredstring—현재 값
onSaveRequired(next: string) => boolean | void | Promise<boolean | void>—저장. false 반환 또는 Promise 실패 시 입력을 유지하고 오류를 알림
as"span" | "h1" | "h2" | "h3" | "h4""span"읽기 모드 요소
size"sm" | "md" | "lg" | "xl""md"타이포 크기
placeholderstring—입력 자리표시자
emptyTextstring"Untitled"빈 값 표시
disabledbooleanfalse편집 불가
maxLengthnumber—최대 길이
suffixReactNode—읽기 모드 텍스트 뒤 요소
labelsInlineEditLabels—입력 이름(input), 편집·저장·취소·오류 안내 문자열
classNamestring—추가 CSS 클래스
View test results

테스트 커버리지

2026년 7월 9일

생성된 테스트 결과를 찾지 못했습니다.

InlineEdit 항목이 문서 메타에 연결되어 있지만 현재 생성 파일에는 없습니다.

테스트를 추가한 뒤 `bun run generate:test-results`를 실행하거나 `testDescribe` 매핑을 다시 확인하세요.

Related components

opt-ui

FieldToken

Core

Display field types with consistent glyphs and optional labels for strings, numbers, dates, IP addresses, and geographic data.

opt-ui

Facet

Core

Filter by field values while reading their counts and distribution bars. Show top values first and collapse the long tail.

opt-ui

Expression

Core

Read and edit conditions as sentences for alert rules and segment filters that need to be easy to verify.

opt-ui

TextTruncate

Core

Measure text in its actual font and available width to truncate the start, middle, or both ends while preserving the full accessible text.

opt-ui

Highlight

Core

Mark matching search terms with semantic mark elements, matching longer terms first to avoid fragmented overlaps.

opt-ui

LiveRegion

Core

Announce live updates to screen readers with throttled summaries and alternating nodes that can repeat identical messages.

PreviousColorPaletteNextKeyPadMenu