Files
phosphoricons/lib/heroicons.ex

40 lines
1.1 KiB
Elixir
Raw Normal View History

2021-03-03 17:35:03 -05:00
defmodule Heroicons do
@moduledoc """
2021-11-12 12:02:26 -05:00
This library provides Phoenix Components for every [Heroicon](https://github.com/tailwindlabs/heroicons).
See `Heroicons.Outline` and `Heroicons.Solid` for the two styles of icon.
2021-03-03 17:35:03 -05:00
2021-11-12 12:02:26 -05:00
## Examples
<Heroicons.Outline.adjustments />
2021-03-03 17:35:03 -05:00
2021-11-12 12:02:26 -05:00
<Heroicons.Solid.arrow_circle_right class="w-6 h-6" />
Can also be used as a function
2021-11-12 12:02:26 -05:00
<%= Heroicons.Outline.adjustments() %>
<%= Heroicons.Solid.arrow_circle_right(class: "w-6 h-6") />
2021-03-03 17:35:03 -05:00
2021-11-12 09:09:03 -05:00
Heroicons are designed by [Steve Schoger](https://twitter.com/steveschoger)
"""
2021-11-12 09:09:03 -05:00
defmodule Outline do
@moduledoc """
2021-11-12 12:02:26 -05:00
Outline style icons drawn with a stroke, packaged as Phoenix Components.
2021-03-06 16:53:46 -05:00
2021-11-12 09:09:03 -05:00
For primary navigation and marketing sections, designed to be rendered at 24x24.
"""
2021-03-03 17:35:03 -05:00
2021-11-12 09:09:03 -05:00
use Heroicons.Generator, icon_dir: "outline/"
2021-03-06 16:53:46 -05:00
end
2021-11-12 09:09:03 -05:00
defmodule Solid do
@moduledoc """
2021-11-12 12:02:26 -05:00
Solid style icons drawn with fills, packaged as Phoenix Components.
2021-03-06 16:53:46 -05:00
2021-11-12 09:09:03 -05:00
For buttons, form elements, and to support text, designed to be rendered at 20x20.
2021-03-06 16:53:46 -05:00
"""
2021-11-12 09:09:03 -05:00
use Heroicons.Generator, icon_dir: "solid/"
2021-03-03 17:35:03 -05:00
end
end