GPUI Deck

Separator

Semantic or decorative separation, with horizontal/vertical orientation.

Rendered by GPUI’s web backend from the real component. Requires a browser with WebGPU.

Separator::new(id) supplies a semantic horizontal separator. .axis(Axis::Vertical) changes its native orientation; .decorative(true) omits its accessibility node for purely visual division. The native semantic role is AccessKit's Splitter without focus or activation actions. This component is a static separator; Resizable pane-divider interaction is not implied.

Use ordinary GPUI styles for its dimensions and color, such as .h(px(1.)).w_full().bg(border) for a horizontal line. Axis does not impose a visual layout. Separators have no children or Tab stop.