aptinio/fontawesome_elixir


License: MIT

Language: Elixir


FontAwesome

Font Awesome is the Internet's icon library and toolkit, used by millions of designers, developers, and content creators.

This provides precompiled SVG icons from Font Awesome Free 6.4.2.

Installation

Add FontAwesome to your mix.exs:

defp deps do
  [
    {:fontawesome, "~> 0.3"}
  ]
end

After that, run mix deps.get.

Usage

By default, the regular style is used. If that is not available, solid or brands is used. This could be changed by providing the solid or brands attributes.

Arbitrary HTML attributes can also be passed and applied to the svg tag.

Examples

<FontAwesome.heart />
<FontAwesome.heart solid />
<FontAwesome.heart class="h-4 w-4" />

The docs can be read at https://hexdocs.pm/fontawesome.

This was inspired by the Heroicons library. Huge thanks to its contributors.

This work was supported by Webformix. Huge thanks to them.

Project Statistics

Sourcerank 3
Repository Size 633 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 2
Contributors 1
Tags 3
Created
Last updated
Last pushed

Top Contributors See all

Aaron Tinio

Packages Referencing this Repo

fontawesome
Phoenix components for Font Awesome!
Latest release 0.3.1 - Updated

Recent Tags See all

v0.3.0 June 04, 2023
v0.2.0 March 27, 2023
v0.1.0 November 08, 2022

Something wrong with this page? Make a suggestion

Last synced: 2023-08-08 02:45:54 UTC

Login to resync this repository