Separator
Lightweight divider seam for cards, forms, panels, and toolbars.
All components · Theme builder · Implementation source
Live preview
Install
netscript ui:add separatorUsage 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 { Separator } from '@app/components/ui/separator.tsx';
export function Example() {
const [value, setValue] = useState('standard');
const [open, setOpen] = useState(false);
const [notice, report] = useState('');
return (<><div><div>Order details<Separator />Fulfillment</div></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 |
|---|---|---|---|---|
SeparatorProps | class | string | Yes | |
SeparatorProps | orientation | "horizontal" | "vertical" | Yes |
SeparatorProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "class" | "children">Keyboard
Presentation component; no component-specific keyboard interactions.
Tokens
Semantic contract roles: border/default, border/strong, border/subtle, border/width.
CSS custom properties referenced directly: --ns-border, --ns-border-hover, --ns-border-width.
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.