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

createBlock

Component

Create Blocks with enforced BlockLayout wrapping and automatic loading and className handling.

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

Live preview

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

100%

createBlock 데모

  • 항목 A
  • 항목 B
  • 항목 C

Usage examples

Block factory

createBlock

PropTypeDefaultDescription
nameRequiredstring—컴포넌트 displayName
renderRequired(props: Omit<P, 'loading' | 'className'>) => ReactNode—콘텐츠를 반환하는 렌더 함수
options.layoutClassNamestring—BlockLayout에 전달할 기본 className
View test results

테스트 커버리지

2026년 7월 9일5/5 통과
5성공
0실패
5전체
  • displayName을 설정한다
  • 렌더 함수의 콘텐츠를 표시한다
  • loading prop이 LoadingOverlay를 활성화한다
  • className이 BlockLayout에 전달된다
  • layoutClassName 옵션이 적용된다

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.

PreviousBlockLayoutNextLogo