Update input component and toast position

This commit is contained in:
Andras Bacsai
2024-03-22 13:09:02 +01:00
parent 66fe124dd1
commit 2f50f64ecf
4 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,9 @@ class Input extends Component
{
if (is_null($this->id)) $this->id = new Cuid2(7);
if (is_null($this->name)) $this->name = $this->id;
if ($this->type === 'password') {
$this->defaultClass = $this->defaultClass . " pr-[2.8rem]";
}
// $this->label = Str::title($this->label);
return view('components.forms.input');
}