DetailLayout
Two-column detail block for record pages with a primary flow and supporting side rail.
All components · Theme builder · Implementation source
Live preview
Open live detail-layout preview
Install
netscript ui:add detail-layoutUsage and examples
The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.
import { useState } from 'preact/hooks';
import { DetailLayout } from '@app/components/ui/detail-layout.tsx';
import { Input } from '@app/components/ui/input.tsx';
export function Example() {
const [value, setValue] = useState('standard');
const [open, setOpen] = useState(false);
const [notice, report] = useState('');
return (<><div><DetailLayout><DetailLayout.Main><h2>Order details</h2><Input aria-label="Order name" /></DetailLayout.Main><DetailLayout.Aside>Recent activity</DetailLayout.Aside></DetailLayout></div><p role="status">{notice}</p></>);
}Props
Generated from native deno doc --json --private over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.
| Owner | Prop | Type | Optional | Description |
|---|---|---|---|---|
DetailLayoutSectionProps | children | Renderable | No | |
DetailLayoutSectionProps | class | string | Yes |
DetailLayoutSectionProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "class" | "children">Keyboard
Presentation component; no component-specific keyboard interactions.
Tokens
Semantic contract roles: space/section/gap.
CSS custom properties referenced directly: --ns-section-gap, --ns-space-6.
Contract and compatibility
Accessibility pattern: noninteractive presentation
- Native DOM attributes pass through where the implementation accepts them.
Design contract values marked planned are not implementation props. The props above describe what ships today.