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

PromptTemplate

Shell

Fill prompt variables, preview substitutions live, and copy the resulting AI prompt.

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

Live preview

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

100%
대시보드 Surface 생성

AI에게 대시보드를 생성하도록 요청하는 프롬프트

@reopt-ai/opt-ui와 @reopt-ai/opt-cli registry blocks를 사용해서 이커머스 대시보드 Surface를 만들어줘.

요구사항:
- BlockLayout으로 루트 래핑 (loading prop 포함)
- SummaryRow로 핵심 지표 4개 표시
- TrendChart로 시계열 추이
- DataTable로 상세 목록
- 시맨틱 스페이싱 토큰 사용 (gap-section, gap-group, gap-element)
코드 리뷰 체크리스트
이 컴포넌트를 opt-ui 가이드라인에 맞게 리뷰해줘.

체크리스트:
- Surface는 BlockLayout 래퍼 사용하는가
- loading prop 지원하는가
- 시맨틱 스페이싱 토큰 사용하는가
- Tab 순서가 논리적인가

PromptTemplate

PropTypeDefaultDescription
titleRequiredstring—프롬프트 제목
descriptionstring—프롬프트 설명 (헤더 아래 표시)
templateRequiredstring—프롬프트 템플릿. {변수명}으로 치환 가능
variablesPromptVariable[]—변수 정의 배열. { name, label, placeholder?, defaultValue? }
labelsPromptTemplateLabels—i18n용 라벨 오버라이드

컴포넌트 의존 관계

깊이
▼ USES (1)PromptTemplateinput
View test results

테스트 커버리지

2026년 7월 9일5/5 통과
5성공
0실패
5전체
  • 제목과 템플릿 본문을 렌더링한다
  • 변수 입력 시 프롬프트를 실시간 치환한다
  • 변수가 없으면 입력 바를 숨긴다
  • defaultValue로 초기값을 설정한다
  • 복사 버튼이 렌더링된다

Related components

opt-ui

SettingsForm

Shells

Build settings forms from data with validation, radio buttons, and checkboxes.

opt-ui

AuthForm

Shells

Switch between sign-in and sign-up forms with email and password validation and a remember-me option.

opt-ui

WizardForm

Shells

Guide sequential input with field definitions, per-step validation, an associated progress indicator, and a review step.

opt-ui

DynamicFieldForm

Shells

Add and remove fields at runtime with count limits, individual validation, and dynamic store updates.

opt-ui

FileUploadForm

Shells

Select files with metadata, image previews, size limits, and description input.

opt-ui

KeyValueEditor

Shells

Edit key-value pairs with dynamic rows, secret-value visibility, and validation.

PreviousThemeSwitcherNextSidebar