예제
레이아웃과 화면
Shell 반응형 기준을 직접 소유하지 않고 경로 프레임, 반응형 영역, 분할 작업 영역, 섹션 간격을 구성합니다.
공개 계약
NxAdaptiveSplitNxPageFrameNxResponsiveRegionNxSectionCardNxSectionStackNxSectionRowNxSwitchNxOrganizationTargetSelector실행 미리 보기
실시간반응형 구성
브라우저 창과 무관하게 이 컨테이너의 너비를 바꿔 분할 영역이 접히는지 확인합니다.
NxResponsiveRegion + NxAdaptiveSplit프리셋을 선택하거나 프레임 오른쪽 아래 모서리를 드래그하세요.
생산 계획
할당된 영역 너비에 따라 주 작업 영역과 보조 영역을 배치합니다.
주 작업 영역
알림
생산 변경 알림을 받습니다.
메모
섹션 간 세로 간격은 호스트 규칙을 따릅니다.
복사 가능한 소스
코드 예시
TSX
import { useState } from "react";
import {
NxAdaptiveSplit,
NxPageFrame,
NxOrganizationTargetSelector,
NxResponsiveRegion,
NxSectionCard,
NxSectionRow,
NxSwitch,
NxSectionStack,
} from "@nexia/sdk/host";
export function LayoutAndSurfacesExample() {
// Illustrative options only: use useOrganizationListScope with an authorized query in an App.
const [organizations, setOrganizations] = useState<string[]>([]);
return (
<div className="min-h-80 overflow-hidden rounded-control border border-border-subtle">
<NxPageFrame breadcrumb={false} maxWidth="none" organizationScope={
<NxOrganizationTargetSelector mode="legal-entity-list"
options={[{ value: "00000000-0000-4000-8000-000000000001", label: "Seoul" }, { value: "00000000-0000-4000-8000-000000000002", label: "Busan" }]}
value={organizations} onChange={setOrganizations} />
}>
<NxSectionStack>
<NxSectionCard
title="Production plan"
description="Container-responsive primary and supporting regions."
>
<NxResponsiveRegion>
<NxAdaptiveSplit
asideWidth="narrow"
twoColumnAt="compact"
>
<div className="min-h-32 rounded-control bg-surface-subtle p-4">
Primary work area
</div>
<aside className="rounded-control border border-border-subtle p-4">
Supporting details
</aside>
</NxAdaptiveSplit>
</NxResponsiveRegion>
</NxSectionCard>
<NxSectionCard layout="rows">
<NxSectionRow label="Notifications" description="Receive production updates.">
<NxSwitch aria-label="Notifications" defaultChecked />
</NxSectionRow>
</NxSectionCard>
<NxSectionCard title="Notes" bordered={false}>
Sections keep the host vertical rhythm.
</NxSectionCard>
</NxSectionStack>
</NxPageFrame>
</div>
);
}