Update 12-repeater.md

This commit is contained in:
Dan Harrin
2025-09-16 10:01:17 +01:00
committed by GitHub
parent 700c5d286c
commit 24eeaafc0a
+2 -2
View File
@@ -437,7 +437,7 @@ Any fields that you use from `$state` should be `live()` if you wish to see the
## Numbering repeater items
Unlike Builders, items in the repeater don't have a number next to their label by default. You may enable this using the `itemNumbers(true)` method:
You can add the repeater item's number next to its label using the `itemNumbers()` method:
```php
use Filament\Forms\Components\Repeater;
@@ -446,7 +446,7 @@ Repeater::make('members')
->schema([
// ...
])
->itemNumbers(true)
->itemNumbers()
```
## Simple repeaters with one field