- This package provides access to the https://heroicons.com collection of SVG icons from Julia.
- Any
HeroIcons.Icon
will display as expected inMIME"text/html"
environments (like Pluto!).
HeroIcons come in four sizes/styles: outline
, solid
, mini
, and micro
. Each size/style has its own set of icons.
- You can retrieve the raw SVG string via
raw_outline(:arrow_down)
(similarly forsolid
,mini
, andmicro
). - The
Icon
object (Icon(icon_name::Symbol, style::Symbol)
) displays the SVG inMIME"text/html"
environments. - Icons are "queryable" via
HeroIcons.outline.<TAB>
(similarly forsolid
,mini
, andmicro
). E.g.HeroIcons.outline.arrow_down
will return theIcon
object for the iconarrow_down
.
using HeroIcons
HeroIcons.outline.arrow_down
HeroIcons.solid.arrow_down
HeroIcons.mini.arrow_down
HeroIcons.micro.arrow_down
- To quickly view icons, use HeroIcons.jl with Cobweb.jl!
using Cobweb
Cobweb.preview(outline.arrow_circle_down) # View a single icon
Cobweb.preview(HeroIcons.Viewer()) # See all available icons