Skip to content

Separator

Separator::make() renders a thin hairline rule that visually divides content. It defaults to a full-width horizontal line — drop it between stacked items to group them:

Stack::make()->gap(Gap::Small)->schema([
Text::make('Profile'),
Separator::make(),
Text::make('Billing'),
Separator::make(),
Text::make('Security'),
]);

->orientation(Orientation $orientation) switches between Horizontal (the default) and Vertical. A vertical separator fills the height of its row — use it between inline items:

Stack::make()->direction('row')->gap(Gap::Small)->schema([
Text::make('Draft'),
Separator::make()->orientation(Orientation::Vertical),
Text::make('Published'),
Separator::make()->orientation(Orientation::Vertical),
Text::make('Archived'),
]);