KScript docs
EN

Components

Coming from Livewire 4

KScript uses its own component syntax. These are the common workflows and their equivalents.

Livewire 4 KScript
Component template and properties extends Component, typed fields and <state>
wire:model @bind($field, on: …)
wire:click and wire:submit on-click and on-submit
Dispatch and listeners @emit_event() and on-event
wire:navigate live-navigate
wire:stream live-stream and @stream()
@teleport <template live-portal="…">
JavaScript hooks, directives and component calls KScriptLive.on(), KScriptLive.directive() and KScriptLive.call()

For the surrounding site, see Web pages. For middleware, ownership and controller contracts, see Routes and APIs. In an MCP client, ask read_doc for the components page.