Fix tests/docs

This commit is contained in:
Max Veytsman
2022-09-02 13:21:32 -04:00
parent 63b0668dcf
commit c0d0f5d38a
2 changed files with 29 additions and 11 deletions

View File

@ -43,11 +43,16 @@ defmodule Heroicons.Generator do
"""
![](assets/#{Path.relative_to(path, :code.priv_dir(:heroicons))}) {: width=24px}
## Examples
Use as a `Phoenix.Component`
<.#{name} />
<.#{name} class="h-6 w-6 text-gray-500" />
or as a function
<%= #{name}() %>
<%= #{name}(class: "h-6 w-6 text-gray-500") %>
"""