defmodule MoonWeb.Pages.Design.TabsPage do @moduledoc false require Logger use MoonWeb, :live_view alias MoonWeb.Components.Anatomy alias MoonWeb.Components.Page alias MoonWeb.Components.ComponentPageDescription alias MoonWeb.Components.PropsTable alias MoonWeb.Components.ExamplesList alias MoonWeb.Examples.Design.TabsExample alias Moon.Design.Tabs data(breadcrumbs, :any, default: [ %{ to: "/components", name: "Components" }, %{ to: "/components/v2/tabs", name: "Tabs" } ] ) data(tab_id, :integer, default: 1) def render(assigns) do ~F"""

Tabs to allow users to navigate easily between views within the same context.

Each tab should contain content that is distinct from other tabs in a set for example, tabs can present different sections of news, different genres of music, or different themes of documents.

Anatomy

{component_anatomy(:long)} {component_anatomy(:short)}
""" end def component_anatomy(:long) do """ ... ... ... ... ... ... """ end def component_anatomy(:short) do """ ... ... ... """ end end