Improve docs
This commit is contained in:
@ -24,16 +24,19 @@ defmodule Heroicons.Generator do
|
||||
doc = """
|
||||
)}) {: width=24px}
|
||||
|
||||
Use as a `Phoenix.Component`
|
||||
<.#{name}>
|
||||
## Examples
|
||||
|
||||
<.#{name} class="h-6 w-6 text-gray-500">
|
||||
Use as a `Phoenix.Component`
|
||||
|
||||
<.#{name} />
|
||||
|
||||
<.#{name} class="h-6 w-6 text-gray-500" />
|
||||
|
||||
Can also be used as a function (deprecated)
|
||||
|
||||
<%= #{name}() %>
|
||||
<%= #{name}() %>
|
||||
|
||||
<%= #{name}(class: "h-6 w-6 text-gray-500") %>
|
||||
<%= #{name}(class: "h-6 w-6 text-gray-500") %>
|
||||
"""
|
||||
|
||||
quote do
|
||||
@ -62,8 +65,6 @@ defmodule Heroicons.Generator do
|
||||
"please use <.#{unquote(name)} class=\"...\" /> inside HEEx templates instead"
|
||||
)
|
||||
|
||||
# opts = Keyword.merge(unquote(default_attrs), opts)
|
||||
|
||||
attrs =
|
||||
for {k, v} <- opts do
|
||||
safe_k =
|
||||
|
Reference in New Issue
Block a user