defmodule Liliform.Panel do use Liliform.Component import Liliform.Media @doc """ Renders a panel. """ attr :class, :string, default: "", doc: "additional classes" attr :rest, :global slot :inner_block, required: true def panel(assigns) do assigns = assigns |> set_bulma_classes() ~H""" """ end @doc """ Renders a panel-heading. """ attr :class, :string, default: "", doc: "additional classes" attr :rest, :global slot :inner_block, required: true def panel_heading(assigns) do assigns = assigns |> set_bulma_classes() ~H"""
<%= render_slot(@inner_block) %>
""" end @doc """ Renders a panel-block. """ attr :class, :string, default: "", doc: "additional classes" attr :rest, :global slot :inner_block, required: true def panel_block(assigns) do assigns = assigns |> set_bulma_classes() ~H""" <%= render_slot(@inner_block) %> """ end @doc """ Renders a panel-block-div. """ attr :class, :string, default: "", doc: "additional classes" attr :rest, :global slot :inner_block, required: true def panel_block_div(assigns) do assigns = assigns |> set_bulma_classes() ~H"""<%= render_slot(@inner_block) %>
""" end end