diff --git a/README.md b/README.md
index aa66878..719b510 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ php artisan laravel-template-components:install
### Input Component
```html
-
+
```
He accept all normal attributes of input tag and add some new attributes:
- div-class: add class to div tag
@@ -34,7 +34,7 @@ He accept all normal attributes of input tag and add some new attributes:
### Button Component
```html
-
+
```
He accept all normal attributes of button tag and add some new attributes:
- div-class: add class to div tag
@@ -46,15 +46,15 @@ He accept all normal attributes of button tag and add some new attributes:
we support livewire loading state, so if you use livewire you can use loading state like this:
```html
-
+
```
### Select Component
```html
-
+
-
+
```
He accept all normal attributes of select tag and add some new attributes:
- div-class: add class to div tag
@@ -63,7 +63,7 @@ He accept all normal attributes of select tag and add some new attributes:
### Textarea Component
```html
-
+
```
He accept all normal attributes of textarea tag and add some new attributes:
- div-class: add class to div tag
@@ -72,14 +72,30 @@ He accept all normal attributes of textarea tag and add some new attributes:
### Form Component
```html
-
+
-
+
```
he accept all normal attributes of form tag and add some new attributes:
- route: route name that will be used in form action
- other attributes will be added to form tag
+### Card Component
+```html
+
+
+ Heading
+
+ Content
+
+ Footer
+
+
+```
+he accept all normal attributes of div tag and add some new attributes:
+- div-class: add class to div tag (contener div)
+- other attributes will be added to div tag (content div)
+
## Supported Templates
- [Vuexy](https://demos.pixinvent.com/vuexy-html-admin-template/landing/)
@@ -90,6 +106,7 @@ he accept all normal attributes of form tag and add some new attributes:
| Vuexy | :white_check_mark: |
| Metronic | :white_check_mark: |
| Html Standards | :white_check_mark: |
+| Bootstrap Classes | :white_check_mark: |
## Testing
diff --git a/config/template-components.php b/config/template-components.php
index d9099be..118f79f 100644
--- a/config/template-components.php
+++ b/config/template-components.php
@@ -4,9 +4,9 @@
return [
'defult_classes' => [
'input' => [
- 'div' => '',
+ 'div' => 'form-group',
'label' => 'form-label',
- 'input' => 'form-control ',
+ 'input' => 'form-control',
'error-div' => 'invalid-feedback',
'input-error' => 'is-invalid',
],
@@ -22,5 +22,18 @@
'error-div' => 'invalid-feedback',
'select-error' => 'is-invalid',
],
+ 'textarea' => [
+ 'div' => 'form-group',
+ 'label' => 'form-label',
+ 'textarea' => 'form-control',
+ 'error-div' => 'invalid-feedback',
+ 'textarea-error' => 'is-invalid',
+ ],
+ 'card' => [
+ 'div' => 'card',
+ 'header' => 'card-header',
+ 'body' => 'card-body',
+ 'footer' => 'card-footer',
+ ],
],
];
diff --git a/resources/views/components/button.blade.php b/resources/views/components/button.blade.php
index 9f7c98d..e997fcd 100644
--- a/resources/views/components/button.blade.php
+++ b/resources/views/components/button.blade.php
@@ -1,12 +1,12 @@
-
+
diff --git a/resources/views/components/card.blade.php b/resources/views/components/card.blade.php
new file mode 100644
index 0000000..63b593d
--- /dev/null
+++ b/resources/views/components/card.blade.php
@@ -0,0 +1,17 @@
+@props(['header', 'footer'])
+
+