View Source LiveSvelte (LiveSvelte v0.14.1)
Link to this section Summary
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 tonil
.ssr
(:boolean
) - Whether to render the component on the server. Defaults totrue
.socket
(:map
) - LiveView socket, should be provided when rendering inside LiveView. Defaults tonil
.live_json_props
(:map
) - LiveJson props to pass to the Svelte component. Defaults to%{}
.
slots
Slots
inner_block
- Inner block of the Svelte component.