diff --git a/docs/form.md b/docs/form.md
index e9c7fca..8862e6b 100644
--- a/docs/form.md
+++ b/docs/form.md
@@ -4,8 +4,15 @@
@demo
-
-
+
+
+
+
+
+
+
+
+
@enddemo
@@ -69,3 +76,34 @@
```
@endverbatim
+
+## Select
+
+@demo
+
+
+
+
+
+
+
+
+
+@enddemo
+
+@verbatim
+
+```blade
+
+
+
+
+
+
+
+
+
+```
+
+@endverbatim
+
diff --git a/src/Providers/BladeServiceProvider.php b/src/Providers/BladeServiceProvider.php
index 294fc55..d5add6c 100644
--- a/src/Providers/BladeServiceProvider.php
+++ b/src/Providers/BladeServiceProvider.php
@@ -78,5 +78,6 @@ public function bootComponents(): void
Blade::component($prefix . 'page.form', Components\Pages\Form::class);
Blade::component($prefix . 'page.header', Components\Pages\Header::class);
Blade::component($prefix . 'form.textarea', Components\Forms\Inputs\Textarea::class);
+ Blade::component($prefix . 'form.select', Components\Forms\Inputs\Select::class);
}
}
diff --git a/src/View/Components/Forms/Inputs/Select.php b/src/View/Components/Forms/Inputs/Select.php
new file mode 100644
index 0000000..2d074a7
--- /dev/null
+++ b/src/View/Components/Forms/Inputs/Select.php
@@ -0,0 +1,50 @@
+uuid = '-' . str(serialize($this))
+ ->pipe('md5')
+ ->limit(5, '')
+ ->toString();
+ }
+
+ public function render(): string|View
+ {
+ return <<<'HTML'
+ @if($label)
+ $attributes->has('required')])>
+ {{ str($label)->lower()->ucfirst() }}
+
+ @endif
+
+
+
+ HTML;
+ }
+}