fontawesome
该软件包添加了一种方便的方法,可以与您的凤凰,凤凰式Liveview和Surface应用程序使用FONT AWACENCE SVGS。
您可以在此处找到原始文档并在此处回购。
当前的Fontawesome版本:6.2.0
安装
将ex_fontawesome添加到mix.exs中的依赖项列表中:
ex_fontawesome, "~> 0.7.2"}
]
end">
def deps do
[
{: ex_fontawesome , "~> 0.7.2"}
]
end
然后运行mix deps.get 。
用法
与EEX或Leex一起
">
< % = FontAwesome . icon ( "address-book" , type: "regular" , class: "h-4 w-4" ) % >
与Heex
< FontAwesome.LiveView . icon name = "address-book" type = "regular" class = "h-4 w-4" / >
与表面
< FontAwesome.Surface.Icon name = "address-book" type = "regular" class = "h-4 w-4" / >