Skip to main content

Module component

Module component 

Source
Expand description

Component trait + per-call context types.

Structs§

BrowserDispatch
ComponentEmit
Ctx
Per-call context carried through action dispatch.
MountProps
Mount-time props — the JSON object passed via the @spark("name", { ... }) directive.
PropertyWrite
A property write from the browser: { name: "draft", value: "hello" }.

Traits§

Component
User-facing trait — implemented for every Spark component by the #[spark::component] attribute macro on the struct + #[spark::actions] on the impl block.