Skip to main content
SegmentControl ← Back to Table of Contents

Summary

Single-select segmented control — alternative to radio lists or selects, with sliding animations, ghost variants, and optional icon-only modes.

Basic usage

Standard segments

Ghost variant with icons and full width


State & validation

Stored value

State is the option key from options().

Validation rules (built-in)


Configuration API

All methods accept Closure unless noted.

Public helper methods


Real-world examples

Responsive device selector (Icon only)

Date range selector (Ghost variant)


Playground

/admin/flex-fields-playground/segment-control See Playground for setup.

CSS classes (reference)