Skip to content

Commit

Permalink
feat(email) cria o input email
Browse files Browse the repository at this point in the history
  • Loading branch information
irineujunior committed Apr 23, 2024
1 parent 843ea0a commit b08cbb6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Providers/BladeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function bootComponents(): void
Blade::component($prefix . 'form.checkbox', Components\Forms\Inputs\Checkbox::class);
Blade::component($prefix . 'form.date', Components\Forms\Inputs\Date::class);
Blade::component($prefix . 'form.datetime', Components\Forms\Inputs\Datetime::class);
Blade::component($prefix . 'form.email', Components\Forms\Inputs\Email::class);
Blade::component($prefix . 'form.input', Components\Forms\Inputs\Input::class);
Blade::component($prefix . 'form.image-library', Components\Forms\Inputs\ImageLibrary::class);
Blade::component($prefix . 'form.password', Components\Forms\Inputs\Password::class);
Expand Down
20 changes: 20 additions & 0 deletions src/View/Components/Forms/Inputs/Email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace Agenciafmd\Ui\View\Components\Forms\Inputs;

class Email extends Input
{
public function __construct(
public string $name = '',
public string $label = '',
public string $hint = '',
public string $type = 'email',
) {
parent::__construct(
$name,
$label,
$hint,
$type,
);
}
}

0 comments on commit b08cbb6

Please sign in to comment.