Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit bec149d

Browse files
committed
docs
1 parent ca6bcd2 commit bec149d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ To include your Livewire component:
108108
</body>
109109
```
110110
111+
if you want to include a component from a dynamic variable you can use the `livewire:component` tag:
112+
113+
```html
114+
<body>
115+
<!-- If using Antlers -->
116+
{{ livewire:component :name="variable" }}
117+
118+
<!-- If using Blade -->
119+
<livewire:component name="$variable" />
120+
</body>
121+
```
122+
111123
### Blade or Antlers? Both!
112124
If creating a Livewire component, you need to render a template file
113125

0 commit comments

Comments
 (0)