© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
skyracer2012

Create a livewire component via javascript

I am working on a solution where I need multiple of the same livewire components on demand. Such as in a repeater.
Does anyone know a way to create a livewire component via javascript?

I tried to add it via .innerHTML of "<livewire:counter />". This however caused this directive to be replaced with the actual livewire component within javascript. To circumvent this I also obfuscated it by appending two strings ("<livew" + "ire:counter />"). This didnt get picked up by livewire however.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Create a reusable Table Listing Livewire Component
FilamentFFilament / ❓┊help
3y ago
livewire component
FilamentFFilament / ❓┊help
4mo ago
component javascript
FilamentFFilament / ❓┊help
3y ago
Livewire custom component - Livewire Sortable
FilamentFFilament / ❓┊help
3y ago