Summary
SaaS-style single-select list (radio behaviour). Same row layout as FlexChecklist but one choice at a time.| Class | Bjanczak\FilamentFlexFields\Filament\Forms\Components\FlexRadiolist |
| State type | string|null — one option key |
| FieldType | flex_radiolist |
Basic usage
Validation
| Behaviour | Detail |
|---|---|
| Built-in | Rule::in(...) — value must be an option key |
required() | A selection is required |
Configuration API
variant(string|Closure $variant)
Sets the visual layout variant. Available: default (standard list), cards (SaaS choice cards), label-only.
Autosave on change
FlexField schema config
| Config key | Maps to |
|---|---|
options | options() |
icons | icons() |
descriptions / desc | descriptions() |
disabled_options | disabledOptions() |
size | size() |
color | color() |
Implementation notes
- Row styles live in the shared
flex-checklist.cssbundle (.fff-flex-radiolist*classes). The radiolist blade loads that bundle via theflex-radiolist→flex-checkliststylesheet alias — no separate CSS file.