Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
salahhusa9 committed Aug 31, 2023
1 parent b0196c3 commit eeafea4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ php artisan laravel-template-components:install

### Input Component
```html
<x.template-components::input />
<x-template-components-input />
```
He accept all normal attributes of input tag and add some new attributes:
- div-class: add class to div tag
Expand All @@ -34,7 +34,7 @@ He accept all normal attributes of input tag and add some new attributes:

### Button Component
```html
<x.template-components::button />
<x-template-components-button />
```
He accept all normal attributes of button tag and add some new attributes:
- div-class: add class to div tag
Expand All @@ -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
<x.template-components::button wire:target="save" />
<x-template-components-button wire:target="save" />
```

### Select Component
```html
<x.template-components::select>
<x-template-components-select>
<option value="1">option 1</option>
<option value="2">option 2</option>
</x-template-components::select>
</x-template-components-select>
```
He accept all normal attributes of select tag and add some new attributes:
- div-class: add class to div tag
Expand All @@ -63,7 +63,7 @@ He accept all normal attributes of select tag and add some new attributes:

### Textarea Component
```html
<x.template-components::textarea />
<x-template-components-textarea />
```
He accept all normal attributes of textarea tag and add some new attributes:
- div-class: add class to div tag
Expand All @@ -72,9 +72,9 @@ He accept all normal attributes of textarea tag and add some new attributes:

### Form Component
```html
<x.template-components::form>
<x-template-components-form>

</x-template-components::form>
</x-template-components-form>
```
he accept all normal attributes of form tag and add some new attributes:
- route: route name that will be used in form action
Expand Down

0 comments on commit eeafea4

Please sign in to comment.