Remove attr :rendered and add slot :inner_block

This commit is contained in:
Wout De Puysseleir 2023-02-28 00:57:47 -08:00
parent 40a0884390
commit 9b9f5fdf99
No known key found for this signature in database
GPG key ID: 3DE9371B50FEC46A

View file

@ -13,11 +13,13 @@ defmodule LiveSvelte do
attr(:props, :map, default: %{})
attr(:name, :string)
attr(:rendered, :boolean, default: false)
slot(:inner_block)
@doc """
Renders a Svelte component on the server.
"""
@impl true
def render(assigns) do
~H"""
<div>