defmodule MoonWeb.Examples.Design.BottomSheetExample.WithTitle do @moduledoc false use Moon.StatefulComponent use MoonWeb, :example alias Moon.Design.Button alias Moon.Design.BottomSheet def render(assigns) do ~F"""

Bottom Sheet title

Bottom Sheet content

Bottom Sheet title

Bottom Sheet content
""" end def handle_event("set_open_title", _, socket) do BottomSheet.open("title_bottom_sheet") {:noreply, socket} end def handle_event("set_open", _, socket) do BottomSheet.open("title_draghandle_bottom_sheet") {:noreply, socket} end def code() do """ alias Moon.Design.Button alias Moon.Design.BottomSheet def render(assigns) do ~F/\"""

Bottom Sheet title

Bottom Sheet content

Bottom Sheet title

Bottom Sheet content
/\""" end def handle_event("set_open_title", _, socket) do BottomSheet.open("title_bottom_sheet") {:noreply, socket} end def handle_event("set_open", _, socket) do BottomSheet.open("title_draghandle_bottom_sheet") {:noreply, socket} end """ end end