Forms\Components\Section::make([
Forms\Components\Placeholder::make('')
->content(new HtmlString(<<<'BLADE'
<div wire:loading wire:target="data.title">
Loading...
</div>
BLADE
)),
Forms\Components\TextInput::make('title')
->live(onBlur: true)
->afterStateUpdated(function (Forms\Set $set, ?string $state) {
$set('slug', str($state)->slug());
}),
Forms\Components\TextInput::make('slug')
])
Forms\Components\Section::make([
Forms\Components\Placeholder::make('')
->content(new HtmlString(<<<'BLADE'
<div wire:loading wire:target="data.title">
Loading...
</div>
BLADE
)),
Forms\Components\TextInput::make('title')
->live(onBlur: true)
->afterStateUpdated(function (Forms\Set $set, ?string $state) {
$set('slug', str($state)->slug());
}),
Forms\Components\TextInput::make('slug')
])