# This component is deprecated, use /components/typography/ css classes defmodule MoonWeb.Pages.Components.Typography.CaptionPage do @moduledoc false use MoonWeb, :live_view alias Moon.Components.Caption alias MoonWeb.Components.ExampleAndCode alias MoonWeb.Components.Page alias MoonWeb.Components.ComponentPageDescription alias MoonWeb.Components.PropsTable data(breadcrumbs, :any, default: [ %{ to: "#", name: "Components" }, %{ to: "/components/caption", name: "Caption" } ] ) data(props_info_array, :list, default: [ %{ :name => ~c"color_class", :type => ~c"string", :required => ~c"No", :default => ~c"-", :description => ~c"Component or element which Tooltip wraps around" }, %{ :name => ~c"default", :type => ~c"slot", :required => ~c"true", :default => ~c"-", :description => ~c"Content for caption" }, %{ :name => ~c"text_align_class", :type => ~c"string", :required => ~c"No", :default => ~c"-", :description => ~c"TODO - Text alignment (this should be an enum set of values)" }, %{ :name => ~c"is_regular", :type => ~c"-", :required => ~c"-", :default => ~c"-", :description => ~c"TODO - Is regular font weight" } ] ) def handle_params(_params, uri, socket) do {:noreply, assign(socket, uri: uri)} end def render(assigns) do ~F"""

Component for presenting short info.

NB! The component is depricated. Please use our new Typography built with Tailwind.

<:example> Defaul color is Bulma Piccolo Trunks Krillin <:code>{example_1_code()} <:example> Text-align is not specified Centered text Right alignment <:code>{example_2_code()}
""" end def example_1_code do """ Defaul color is Bulma Piccolo Trunks Krillin """ end def example_2_code do """ Text-align is not specified Centered text Right alignment """ end end