View Source PhoenixDuskmoon.Appbar (PhoenixDuskmoon v4.5.0)
render appbar
Summary
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 tofalse
.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.
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 tofalse
.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.