View Source PhoenixDuskmoon.Appbar (PhoenixDuskmoon v4.5.0)

render appbar

Summary

Functions

Generates a html customElement appbar.

Generates an simple html appbar.

Functions

Generates a html customElement appbar.

Example

<.dm_appbar
  title={"PhoenixDuskmoon"}
>
  <:menu to={~p"/storybook"}>
    Component Storybook
  </:menu>
  <:logo>
    <logo-gsmlg-dev />
  </:logo>
  <:user_profile>
    (^_^)
  </:user_profile>
</.dm_appbar>

Attributes

  • id (:any) - html attribute id. Defaults to false.
  • class (:any) - html attribute class. Defaults to "".
  • title (:string) - Appbar title. Defaults to "".

Slots

  • menu - Appbar menus. Accepts attributes:
    • class (:string)
    • to (:string)
  • logo - Appbar Logo.
  • user_profile - Appbar right side user_profile.
Link to this function

dm_simple_appbar(assigns)

View Source

Generates an simple html appbar.

Example

<.dm_simple_appbar
  title={"PhoenixDuskmoon"}
>
  <:menu to={~p"/storybook"}>
    Component Storybook
  </:menu>
  <:logo>
    <logo-gsmlg-dev />
  </:logo>
  <:user_profile>
    (^_^)
  </:user_profile>
</.dm_simple_appbar>

Attributes

  • id (:any) - html attribute id. Defaults to false.
  • class (:any) - html attribute class. Defaults to "".
  • title (:string) - Appbar title. Defaults to "".

Slots

  • menu - Appbar menus. Accepts attributes:
    • class (:string)
    • to (:string)
  • logo - Appbar Logo.
  • user_profile - Appbar right side user_profile.