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

Disclosure

Component

Expand and collapse content with Root, Trigger, and Content components.

overlay
Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { DisclosureRoot, DisclosureTrigger, DisclosureContent } from "@reopt-ai/opt-ui";

Live preview

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

100%

기본 사용

기본 열림 상태

opt-ui는 접근성 프리미티브 기반 UI 컴포넌트 라이브러리입니다. 키보드 탐색과 스크린 리더 지원을 기본 제공합니다.

DisclosureRoot

PropTypeDefaultDescription
openboolean—제어 모드: 열림 상태
setOpen(open: boolean) => void—제어 모드: 상태 변경 핸들러
defaultOpenbooleanfalse비제어 모드: 초기 열림 상태

DisclosureTrigger

PropTypeDefaultDescription
childrenRequiredReactNode—트리거 내용
classNamestring—기본 스타일 오버라이드

DisclosureContent

PropTypeDefaultDescription
childrenRequiredReactNode—접히는 콘텐츠
classNamestring—기본 스타일 오버라이드

컴포넌트 의존 관계

깊이
▲ USED BY (2)faq-accordionenv-panelDisclosure
View test results

테스트 커버리지

2026년 7월 9일2/2 통과
2성공
0실패
2전체
  • 트리거 클릭으로 콘텐츠를 토글한다
  • defaultOpen으로 초기에 열려 있다

키보드 동작

키동작
Enter / Space열기/닫기 토글

Related components

opt-ui

Dialog

Core

Compose accessible modal dialogs with triggers, headings, descriptions, dismissal controls, and header, body, and footer regions.

opt-ui

Popover

Core

Show floating content anchored to a trigger using the Popover primitive.

opt-ui

Drawer

Core

Open accessible side or bottom sliding panels with a Dialog-based compound API.

opt-ui

Menu

Core

Compose menu bars and individual menus with checkbox items, radio items, separators, and popovers.

opt-ui

DropdownMenu

Core

Create a single-trigger dropdown with a convenient wrapper around Menu Core.

opt-ui

FieldToken

Core

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

PreviousCompositeZoneNextTabs