Skip to content

Commit

Permalink
docs: Fix appbar docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
GSMLG-BOT committed Dec 1, 2022
1 parent 9677a60 commit f90f6ad
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions apps/phoenix_webcomponent/lib/phoenix_webcomponent/appbar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ defmodule Phoenix.WebComponent.Appbar do
## Attributes
- `title` binary
- `title` `binary`
Appbar Title.
example: "App Title"
- `menus` List
- `menus` `List`
Appbar menus.
example: [ %{ label: "Menu Name", to: ~p"/menu-url" } ]
## Slots
- `logo`
Appbar Logo.
- `user_profile`
Right side userinfo.
"""
def wc_appbar(assigns) do
Expand Down Expand Up @@ -54,19 +58,26 @@ defmodule Phoenix.WebComponent.Appbar do
end

@doc """
Generates an appbar.
Generates an simple html appbar.
## Attributes
- `title` binary
- `home` `binary`
Link to Home page.
example: "https://hexdocs.pm/phoenix_webcomponent/"
- `title` `binary`
Appbar Title.
example: "App Title"
- `menus` List
- `menus` `List`
Appbar menus.
example: [ %{ label: "Menu Name", to: ~p"/menu-url" } ]
## Slots
- `logo`
Appbar Logo.
- `user_profile`
Right side userinfo.
"""
def wc_simple_appbar(assigns) do
Expand Down

0 comments on commit f90f6ad

Please sign in to comment.