defmodule MoonWeb.Pages.Components.CarouselPage do @moduledoc false use MoonWeb, :live_view alias Moon.Components.Carousel alias MoonWeb.Components.ExampleAndCode alias MoonWeb.Components.Page alias MoonWeb.Components.ComponentPageDescription alias MoonWeb.Components.PropsTable data(breadcrumbs, :any, default: [ %{ to: "#", name: "Components v1" }, %{ to: "/components/carousel", name: "Carousel" } ] ) data(props_info_array, :list, default: [ %{ :name => ~c"space", :type => ~c"-", :required => ~c"-", :default => ~c"-", :description => ~c"TODO" }, %{ :name => ~c"items", :type => ~c"-", :required => ~c"-", :default => ~c"-", :description => ~c"TODO - Items to display inside carousel" }, %{ :name => ~c"scroll_to_left_button", :type => ~c"-", :required => ~c"-", :default => ~c"-", :description => ~c"TODO - Scroll to left button" }, %{ :name => ~c"scroll_to_right_button", :type => ~c"-", :required => ~c"-", :default => ~c"-", :description => ~c"TODO - Scroll to right button" } ] ) def handle_params(_params, uri, socket) do {:noreply, assign(socket, uri: uri)} end def render(assigns) do ~F""" An interactive extension of the Reel component to cycle through content. <:example> Item Item Item Item Item Item Item Item Item Item <:code>{carousel_1_code()} """ end def carousel_1_code do """ Item Item Item Item Item Item Item Item Item Item """ end end
An interactive extension of the Reel component to cycle through content.