Skip to main content
← Back to Table of Contents

Summary

Schema layout component providing segmented tabs. Each tab wraps a nested form schema, allowing for clean organization of complex forms. Shares the same visual language as SegmentControl.

Basic usage

Standard segmented tabs

Ghost variant with query persistence


Configuration API

All methods accept Closure unless noted.

Tab height and rounding

Rounding values are none (0), native (8 px), md (12 px), lg (16 px), xl (20 px) and full (pill). Omitting rounding(), passing null, or using default uses the full pill radius. Track, active indicator and segment buttons use the same instance radius. Nested fields retain their own radius and sizes. The separate SegmentControl form field retains its 32 / 36 / 42 px size scale.

SegmentTab API


Real-world examples

Multi-step profile editor


Playground

/admin/flex-fields/segment-tabs See Playground for setup.

CSS classes (reference)

Uses fff-segment-control classes for the tab switcher header.

Runtime and composition

Tabs reuse SegmentControl presentation rather than copying its HTML. Initially active child assets are render-blocking; inactive panels load on activation and retire assets after their last consumer disappears. Local selection survives Livewire action morphs. Query persistence stores relative tab keys and preserves Livewire history state. Automatic horizontal overflow provides chevrons and fading edges; keyboard selection scrolls the active tab into view.
Last modified on October 24, 2026