defmodule Storybook.Components.Modal do use PhoenixStorybook.Story, :component def function, do: &Doggo.modal/1 def template do """
<.lsb-variation/>
""" end def variations do [ %Variation{ id: :default, attributes: %{id: "pet-modal"}, slots: [ """ <:title>Show pet """, """

My pet is called Johnny.

""", """ <:footer> <.link phx-click={JS.exec("data-cancel", to: "#modal-single-default")}> Close """ ] } ] end end