New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A slot entry must be a direct child of a component #1870
Comments
Hi @aymanosman! Wouldn't this example yield the same result for your use case? def alert(assigns) do
~H"""
<div class="alert alert-danger">
<ul>
<%= for error <- @errors do %>
<li><%= render_slot(error, error) %></li>
<% end %>
</ul>
</div>
"""
end <.alert errors={["really bad error message"]}>
<:error let="error">
Some Error <%= error %>
</:error>
</.alert> |
Confirm, @thiagomajesk is the solution to achieve what you want. Thanks! |
That works! Thanks. There was just a small typo in your example. This |
Just to confirm - there is no plans to allow this behaviour so it's by design or just temporary limitation until it will be done? Like in |
confirm |
Given
I get the following error message.
I'm just wondering whether there is a plan to support such a use-case because it would be neat.
The text was updated successfully, but these errors were encountered: