Text input
简介
文本输入(TextInput)字段允许你与字符串进行交互:
use Filament\Forms\Components\TextInput;
TextInput::make('name')

设置 HTML input 类型
你可以使用一系列方法设置字符串类型。比如,email(),它同时也提供了相应的验证:
use Filament\Forms\Components\TextInput;
TextInput::make('text')
->email() // or
->numeric() // or
->integer() // or
->password() // or
->tel() // or
->url()
你也可以使用 type() 方法,并传入一个 HTML Input 类型:
use Filament\Forms\Components\TextInput;
TextInput::make('backgroundColor')
->type('color')


