petalframework / petal_components

Phoenix + Live View HEEX Components
https://petal.build/components
MIT License
768 stars 84 forks source link

example in doc is wrong #233

Closed pyladune closed 11 months ago

pyladune commented 11 months ago

stacked tag is cloded by sidebar tag

https://petal.build/components/layouts

<.stacked_layout
  current_page={:dashboard}
  main_menu_items={[
    %{
      name: :dashboard,
      label: "Dashboard",
      path: ~p"/",
      icon: :window,
    },
    %{
      name: :sidebar,
      label: "Sidebar",
      path: ~p"/components/layouts/sidebar",
      icon: :cog,
    }
  ]}
  user_menu_items={[
    %{
      name: :login,
      label: "Login",
      path: ~p"/login",
      icon: :key
    }
  ]}
>
  <:logo>
    <img class="h-8" src="https://res.cloudinary.com/wickedsites/image/upload/v1635752721/petal/logo_rh2ras.png" />
  </:logo>

  <%= @inner_content %>
</.sidebar_layout>
nhobes commented 11 months ago

Fixed, thanks for reporting!