<?php

declare(strict_types=1);

namespace App\Filament\Components\Fields;

use App\Filament\StateCasts\UriStateCast;
use Filament\Forms\Components\TextInput as BaseTextInput;

class TextInput extends BaseTextInput
{
    public function uri(): static
    {
        return $this
            ->stateCast(resolve(UriStateCast::class))
            ->url();
    }
}
