View Source LiveSvelte (LiveSvelte v0.14.1)

Link to this section Summary

Functions

Renders a Svelte component on the server.

Link to this section Functions

Renders a Svelte component on the server.

attributes

Attributes

  • props (:map) - Props to pass to the Svelte component. Defaults to %{}.
  • name (:string) (required) - Name of the Svelte component.Examples include "YourComponent", and "directory/Example".
  • class (:string) - Class to apply to the Svelte component. Defaults to nil.
  • ssr (:boolean) - Whether to render the component on the server. Defaults to true.
  • socket (:map) - LiveView socket, should be provided when rendering inside LiveView. Defaults to nil.
  • live_json_props (:map) - LiveJson props to pass to the Svelte component. Defaults to %{}.

slots

Slots

  • inner_block - Inner block of the Svelte component.