defmodule Moon.Parts.Sidebar.Generic do @moduledoc false use Moon.StatelessComponent alias Moon.Parts.Sidebar @doc "Id attribute for DOM element" prop(id, :string) @doc "Data-testid attribute for DOM element" prop(testid, :string) @doc "Additional Tailwind classes" prop(class, :css_class) @doc "List of sections to be redered when no default slot is given" prop(sections, :list, default: []) @doc "aria-label HTTP attribute for nav" prop(aria_label, :string, default: "Sidebar Generic") @doc "Logo slot" slot(logo) @doc "Default slot" slot(default) def render(assigns) do ~F""" """ end end